luci-app-ocserv: uclibc's crypt() doesn't support sha2crypt 304/head
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 20 Jan 2015 21:19:08 +0000 (22:19 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 20 Jan 2015 21:19:11 +0000 (22:19 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua

index e2a08acf3674f6f210638329e83a211d8cd41a30..2e530c084148fecb4c61c4a2976c61001f941ac1 100644 (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)