summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/util-sql-users.lua
diff options
context:
space:
mode:
authorMojca Miklavec <mojca.miklavec@gmail.com>2014-05-05 20:29:55 +0000
committerMojca Miklavec <mojca.miklavec@gmail.com>2014-05-05 20:29:55 +0000
commitba9a57343987f1c2c72396e7c38f1fa30352c24c (patch)
tree66a8b12cdf67427ce96770fd0e9e581759aade1c /Master/texmf-dist/tex/context/base/util-sql-users.lua
parent15242121b8ddf7d4a041fb3998d295dd8232e1eb (diff)
ConTeXt 2014.04.28 23:24
git-svn-id: svn://tug.org/texlive/trunk@33856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/util-sql-users.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/util-sql-users.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/util-sql-users.lua b/Master/texmf-dist/tex/context/base/util-sql-users.lua
index ea8fb4e07f5..a1f4339461c 100644
--- a/Master/texmf-dist/tex/context/base/util-sql-users.lua
+++ b/Master/texmf-dist/tex/context/base/util-sql-users.lua
@@ -17,7 +17,7 @@ local sql = utilities.sql
local format, upper, find, gsub, topattern = string.format, string.upper, string.find, string.gsub, string.topattern
local sumhexa = md5.sumhexa
-local booleanstring = string.booleanstring
+local toboolean = string.toboolean
local sql = utilities.sql
local users = { }
@@ -244,7 +244,7 @@ function users.add(db,specification)
fullname = name or fullname,
password = encryptpassword(specification.password or ""),
group = groupnumbers[specification.group] or groupnumbers.guest,
- enabled = booleanstring(specification.enabled) and "1" or "0",
+ enabled = toboolean(specification.enabled) and "1" or "0",
email = specification.email,
address = specification.address,
theme = specification.theme,
@@ -354,7 +354,7 @@ function users.save(db,id,specification)
fullname = fullname,
password = encryptpassword(password),
group = groupnumbers[group],
- enabled = booleanstring(enabled) and "1" or "0",
+ enabled = toboolean(enabled) and "1" or "0",
email = email,
address = address,
theme = theme,