projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-mod-admin-full: admin: change password in Map.parse()
[project/luci.git]
/
modules
/
luci-mod-admin-full
/
luasrc
/
model
/
cbi
/
admin_system
/
admin.lua
diff --git
a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
index
1e47564
..
493a735
100644
(file)
--- a/
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
+++ b/
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/admin.lua
@@
-21,7
+21,7
@@
function s.cfgsections()
return { "_pass" }
end
return { "_pass" }
end
-function m.
on_commit
(map)
+function m.
parse
(map)
local v1 = pw1:formvalue("_pass")
local v2 = pw2:formvalue("_pass")
local v1 = pw1:formvalue("_pass")
local v2 = pw2:formvalue("_pass")
@@
-36,6
+36,8
@@
function m.on_commit(map)
m.message = translate("Given password confirmation did not match, password not changed!")
end
end
m.message = translate("Given password confirmation did not match, password not changed!")
end
end
+
+ Map.parse(map)
end
end