fix(quality): switch linter and fix errors
This commit is contained in:
@@ -280,7 +280,9 @@ func (service AuthServiceImpl) ChangePassword(user *User, currPass, newPass stri
|
||||
|
||||
newHash := GetHashPassword(newPass, userDb.Salt)
|
||||
|
||||
err = service.dbAuth.UpdateUserPassword(user.Id, newHash)
|
||||
userDb.Password = newHash
|
||||
|
||||
err = service.dbAuth.UpdateUser(userDb)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -304,7 +306,7 @@ func (service AuthServiceImpl) ForgotPassword(email string) error {
|
||||
utils.LogError("Could not render reset password email", err)
|
||||
return types.ErrInternal
|
||||
}
|
||||
service.mailService.SendMail(email, "Reset Password", mail.String())
|
||||
go service.mailService.SendMail(email, "Reset Password", mail.String())
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user