X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-ocserv%2Fluasrc%2Fmodel%2Fcbi%2Focserv%2Fusers.lua;h=2e530c084148fecb4c61c4a2976c61001f941ac1;hp=2f69c014e263e803a188cf0362dcb503f4088d55;hb=7a792ee564eed46d2ea634459f8419b9916c3da8;hpb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92 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 2f69c014e..2e530c084 100644 --- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua +++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/users.lua @@ -1,15 +1,5 @@ ---[[ -LuCI - Lua Configuration Interface - -Copyright 2014 Nikos Mavrogiannopoulos - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -]]-- +-- Copyright 2014 Nikos Mavrogiannopoulos +-- Licensed to the public under the Apache License 2.0. local dsp = require "luci.dispatcher" local nixio = require "nixio" @@ -40,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)