aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/form/settings.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/form/settings.go')
-rw-r--r--ui/form/settings.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/form/settings.go b/ui/form/settings.go
index 97c8f6e..0377f5f 100644
--- a/ui/form/settings.go
+++ b/ui/form/settings.go
@@ -43,7 +43,12 @@ func (s *SettingsForm) Validate() error {
return errors.NewLocalizedError("error.settings_mandatory_fields")
}
- if s.Password != "" {
+ if s.Confirmation == "" {
+ // Firefox insists on auto-completing the password field.
+ // If the confirmation field is blank, the user probably
+ // didn't intend to change their password.
+ s.Password = ""
+ } else if s.Password != "" {
if s.Password != s.Confirmation {
return errors.NewLocalizedError("error.different_passwords")
}