[bugfix] Fix admin account confirm on pre-confirmed account setting email address to empty string (#1203)

This commit is contained in:
tobi 2022-12-02 17:41:10 +01:00 committed by GitHub
commit 281f712477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -174,7 +174,6 @@ func (a *adminDB) NewSignup(ctx context.Context, username string, reason string,
if emailVerified {
u.ConfirmedAt = time.Now()
u.Email = email
u.UnconfirmedEmail = ""
}
if admin {