summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ocserv/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-03-10 18:55:46 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-03-10 18:55:46 +0100
commitdd2b05289b40002b2e4c098abfc88052e423215f (patch)
treebf511628c0cb85ddeefd1d859371c3828e65b473 /applications/luci-app-ocserv/luasrc
parent31e7adea63a4e7174d7f91daa9d323ee78a17a18 (diff)
parent7a792ee564eed46d2ea634459f8419b9916c3da8 (diff)
Merge pull request #304 from nmav/ocserv-crypt
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
Diffstat (limited to 'applications/luci-app-ocserv/luasrc')
-rw-r--r--applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
index 8cf35b79b..c4be1818f 100644
--- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
+++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua
@@ -30,7 +30,7 @@ function pwd.write(self, section, value)
pass = value
else
local t = tonumber(nixio.getpid()*os.time())
- local salt = "$5$" .. t .. "$"
+ local salt = "$1$" .. t .. "$"
pass = nixio.crypt(value, salt)
end
Value.write(self, section, pass)