From e8781556011a94c3f6deea5063e80110d450eae3 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sun, 12 Jul 2015 16:31:00 +0200
Subject: [PATCH] gluon-luci-admin: fix setting the password

This was broken due to the switch to Chaos Calmer.
---
 .../files/usr/lib/lua/luci/model/cbi/admin/remote.lua           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua b/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
index 5797b6239..13840542a 100644
--- a/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
+++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
@@ -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.")
-- 
GitLab