summaryrefslogtreecommitdiffstats
path: root/app/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/user.go')
-rw-r--r--app/user.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/user.go b/app/user.go
index 87b21fb92..3272781e7 100644
--- a/app/user.go
+++ b/app/user.go
@@ -864,11 +864,7 @@ func (a *App) UpdatePasswordAsUser(userId, currentPassword, newPassword string)
T := utils.GetUserTranslations(user.Locale)
- if err := a.UpdatePasswordSendEmail(user, newPassword, T("api.user.update_password.menu")); err != nil {
- return err
- }
-
- return nil
+ return a.UpdatePasswordSendEmail(user, newPassword, T("api.user.update_password.menu"))
}
func (a *App) UpdateActiveNoLdap(userId string, active bool) (*model.User, *model.AppError) {
@@ -1353,11 +1349,7 @@ func (a *App) GetVerifyEmailToken(token string) (*model.Token, *model.AppError)
}
func (a *App) VerifyUserEmail(userId string) *model.AppError {
- if err := (<-a.Srv.Store.User().VerifyEmail(userId)).Err; err != nil {
- return err
- }
-
- return nil
+ return (<-a.Srv.Store.User().VerifyEmail(userId)).Err
}
func (a *App) SearchUsers(props *model.UserSearch, searchOptions map[string]bool, asAdmin bool) ([]*model.User, *model.AppError) {