d4fc0d2c5a
During registration, one may be required to give their email address, to
be verified and activated later. However, if one makes a mistake, a
typo, they may end up with an account that cannot be activated due to
having a wrong email address.
They can still log in, but not change the email address, thus, no way to
activate it without help from an administrator.
To remedy this issue, lets allow changing the email address for logged
in, but not activated users.
This fixes gitea#17785.
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit aaaece28e4c6a8980cef932e224e84933d7c9262)
(cherry picked from commit 639dafabec0a5c1f943b44ca02f72c5ba2fc5e10)
(cherry picked from commit d699c12cebea7dbbda950ae257a46d53c39f22ea)
[GITEA] Allow changing the email address before activation (squash) cache is always active
This needs to be revisited because the MailResendLimit is not enforced
and turns out to not be tested.
See
|
||
---|---|---|
.. | ||
activate.tmpl | ||
captcha.tmpl | ||
change_passwd.tmpl | ||
change_passwd_inner.tmpl | ||
finalize_openid.tmpl | ||
forgot_passwd.tmpl | ||
grant.tmpl | ||
grant_error.tmpl | ||
link_account.tmpl | ||
oidc_wellknown.tmpl | ||
prohibit_login.tmpl | ||
reset_passwd.tmpl | ||
signin.tmpl | ||
signin_inner.tmpl | ||
signin_navbar.tmpl | ||
signin_openid.tmpl | ||
signup.tmpl | ||
signup_inner.tmpl | ||
signup_openid_connect.tmpl | ||
signup_openid_navbar.tmpl | ||
signup_openid_register.tmpl | ||
twofa.tmpl | ||
twofa_scratch.tmpl | ||
webauthn.tmpl | ||
webauthn_error.tmpl |