gluon-luci-admin: fix setting the password
This was broken due to the switch to Chaos Calmer.
This commit is contained in:
parent
34e0451e45
commit
e878155601
@ -84,7 +84,7 @@ function m2.on_commit(map)
|
||||
if v1 and v2 then
|
||||
if v1 == v2 then
|
||||
if #v1 > 0 then
|
||||
if luci.sys.user.setpasswd(luci.dispatcher.context.authuser, v1) == 0 then
|
||||
if luci.sys.user.setpasswd('root', v1) == 0 then
|
||||
m2.message = translate("Password changed.")
|
||||
else
|
||||
m2.errmessage = translate("Unable to change the password.")
|
||||
|
Loading…
Reference in New Issue
Block a user