mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
Merge pull request #304 from nmav/ocserv-crypt
luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt
This commit is contained in:
commit
dd2b05289b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user