luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos 2015-01-20 22:19:08 +01:00
parent 52ecc90b31
commit 7a792ee564

View file

@ -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)