From: Nikos Mavrogiannopoulos Date: Tue, 20 Jan 2015 21:19:08 +0000 (+0100) Subject: luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a792ee564eed46d2ea634459f8419b9916c3da8;p=project%2Fluci.git luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt Signed-off-by: Nikos Mavrogiannopoulos --- 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 e2a08acf36..2e530c0841 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)