forgejo/models/user
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
..
avatar.go
badge.go
email_address.go [GITEA] Allow changing the email address before activation 2023-12-18 16:39:21 +01:00
email_address_test.go [GITEA] Allow changing the email address before activation 2023-12-18 16:39:21 +01:00
error.go
external_login_user.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
follow.go
follow_test.go
list.go
main_test.go
must_change_password.go
openid.go
openid_test.go
redirect.go
redirect_test.go
search.go
setting.go
setting_keys.go
setting_test.go
user.go [GITEA] notifies admins on new user registration 2023-12-18 16:39:16 +01:00
user_system.go
user_test.go [GITEA] notifies admins on new user registration 2023-12-18 16:39:16 +01:00
user_update.go