You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* giteaofficial/main:
[skip ci] Updated licenses and gitignores
Show whether a PR is WIP inside popups (go-gitea#28975)
Unify password changing and invalidate auth tokens (go-gitea#27625)
Unify user update methods (go-gitea#28733)
Do not render empty comments (go-gitea#29039)
returnerrors.New("The password you chose is on a list of stolen passwords previously exposed in public data breaches. Please try again with a different password.\nFor more details, see https://haveibeenpwned.com/Passwords")
returnfmt.Errorf("Password is not long enough. Needs to be at least %d", setting.MinPasswordLength)
73
+
caseerrors.Is(err, password.ErrComplexity):
74
+
returnerrors.New("Password does not meet complexity requirements")
75
+
caseerrors.Is(err, password.ErrIsPwned):
76
+
returnerrors.New("The password you chose is on a list of stolen passwords previously exposed in public data breaches. Please try again with a different password.\nFor more details, see https://haveibeenpwned.com/Passwords")
77
+
default:
78
+
returnerr
79
+
}
82
80
}
83
81
84
82
fmt.Printf("%s's password has been successfully updated!\n", user.Name)
0 commit comments