'Unknown Error, password not changed' with luci-ssl-nginx in 18.06.1

I cloned git://git.openwrt.org/openwrt/openwrt.git some days ago,i want to use nginx as webservice, so i tried this option。
image
Everything goes fine, but i can't change root password in web page,and 'passwd root' command work fine.

Then i tried uhttpd, no problem with web page and command

May be something wrong with the new option, but i don't understand the lua language.
may be change password failed in this fuction?

m = Map("system", translate("Router Password"),
translate("Changes the administrator password for accessing the device"))

s = m:section(TypedSection, "_dummy", "")
s.addremove = false
s.anonymous = true

pw1 = s:option(Value, "pw1", translate("Password"))
pw1.password = true

pw2 = s:option(Value, "pw2", translate("Confirmation"))
pw2.password = true

function s.cfgsections()
return { "_pass" }
end

function m.parse(map)
local v1 = pw1:formvalue("_pass")
local v2 = pw2:formvalue("_pass")

if v1 and v2 and #v1 > 0 and #v2 > 0 then
if v1 == v2 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!")
end
else
m.message = translate("Given password confirmation did not match, password not changed!")
end
end

Map.parse(map)
end

You may want to consult @Ansuel. He's a major contributor to the development of LuCI with nginx.

The primary thread used for its development is still active, actually:

We should check the log and any browser error...

1 Like

I complied the firmware today to change the webpage to english, i‘m working hard on my english :joy::joy: , so i hope i can understand you corrently.
Do you meaning you want to see the following screenshots?

IN CHROME:
/cgi-bin/luci/admin/system/admin
image

image