diff options
Diffstat (limited to 'tex/context/base/util-sql-users.lua')
-rw-r--r-- | tex/context/base/util-sql-users.lua | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/tex/context/base/util-sql-users.lua b/tex/context/base/util-sql-users.lua index 81324afcf..8147f532d 100644 --- a/tex/context/base/util-sql-users.lua +++ b/tex/context/base/util-sql-users.lua @@ -97,7 +97,7 @@ registergroup("guest") users.groupnames = groupnames users.groupnumbers = groupnumbers --- -- password 'test': +-- password 'test': -- -- INSERT insert into users (`name`,`password`,`group`,`enabled`) values ('...','MD5:098F6BCD4621D373CADE4E832627B4F6',1,1) ; @@ -156,32 +156,6 @@ local template =[[ ; ]] --- function users.valid(db,username,password) --- --- local data = db.execute { --- template = template, --- converter = converter, --- variables = { --- basename = db.basename, --- fields = fields, --- name = username, --- password = encryptpassword(password), --- }, --- } --- --- local data = data and data[1] --- --- if not data then --- return false, "unknown" --- elseif not data.enabled then --- return false, "disabled" --- else --- data.password = nil --- return data, "okay" --- end --- --- end - local template =[[ SELECT %fields% |