summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc/model
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin-mini/luasrc/model')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/passwd.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua b/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua
index 8ff18cb5cf..dff5aeb7b6 100644
--- a/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua
+++ b/modules/admin-mini/luasrc/model/cbi/mini/passwd.lua
@@ -16,9 +16,11 @@ f = SimpleForm("password", translate("a_s_changepw"), translate("a_s_changepw1")
pw1 = f:field(Value, "pw1", translate("password"))
pw1.password = true
+pw1.rmempty = false
pw2 = f:field(Value, "pw2", translate("confirmation"))
pw2.password = true
+pw2.rmempty = false
function pw2.validate(self, value, section)
return pw1:formvalue(section) == value and value