forgejo/routers/web/auth
Gergely Nagy 639dafabec
[GITEA] Allow changing the email address before activation
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 aaaece28e4)
2023-12-18 16:39:21 +01:00
..
2fa.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
auth.go [GITEA] Allow changing the email address before activation 2023-12-18 16:39:21 +01:00
linkaccount.go Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
oauth.go [GITEA] oauth2: use link_account page when email/username is missing (#1757) 2023-12-18 16:39:20 +01:00
oauth_test.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
openid.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
password.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
webauthn.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00