git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1e0e458
)
modules/admin-full: set password of logged in user instead of unconditionally using...
author
Jo-Philipp Wich
<redacted>
Fri, 6 Jan 2012 16:42:02 +0000
(16:42 +0000)
committer
Jo-Philipp Wich
<redacted>
Fri, 6 Jan 2012 16:42:02 +0000
(16:42 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
patch
|
blob
|
history
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
b/modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
index fbc0dfcb6c10b518e2e84b719391bc7c37fe05d8..a3da6beb6fb9210219d92855689357aab825921c 100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
@@
-38,7
+38,7
@@
function m.on_commit(map)
if v1 and v2 and #v1 > 0 and #v2 > 0 then
if v1 == v2 then
- if luci.sys.user.setpasswd(
"root"
, v1) == 0 then
+ if luci.sys.user.setpasswd(
luci.dispatcher.context.authuser
, v1) == 0 then
m.message = translate("Password successfully changed!")
else
m.message = translate("Unknown Error, password not changed!")
git clone https://git.99rst.org/PROJECT