mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user