Fix creating a new user and returning it
This commit is contained in:
parent
402fe2b7df
commit
81605136c6
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user