Fix creating a new user and returning it

This commit is contained in:
kolaente 2021-02-07 21:02:44 +01:00
parent 402fe2b7df
commit 81605136c6
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func CreateUser(s *xorm.Session, user *User) (newUser *User, err error) {
// Dont send a mail if no mailer is configured
if !config.MailerEnabled.GetBool() {
return
return newUserOut, err
}
n := &EmailConfirmNotification{