Skip to content
Snippets Groups Projects
Commit e8781556 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-luci-admin: fix setting the password

This was broken due to the switch to Chaos Calmer.
parent 34e0451e
Branches
Tags
No related merge requests found
...@@ -84,7 +84,7 @@ function m2.on_commit(map) ...@@ -84,7 +84,7 @@ function m2.on_commit(map)
if v1 and v2 then if v1 and v2 then
if v1 == v2 then if v1 == v2 then
if #v1 > 0 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.") m2.message = translate("Password changed.")
else else
m2.errmessage = translate("Unable to change the password.") m2.errmessage = translate("Unable to change the password.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment