summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-20 22:19:08 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-20 22:19:11 +0100
commit7a792ee564eed46d2ea634459f8419b9916c3da8 (patch)
tree45a47af7245b798908a68a841d599af6d69813a1 /applications
parent52ecc90b3129c72a856c3d16534276ab7e192179 (diff)
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'applications')
-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 e2a08acf3..2e530c084 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)