summaryrefslogtreecommitdiffstats
path: root/app/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/user.go')
-rw-r--r--app/user.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/user.go b/app/user.go
index c6324eb5f..27e6f347d 100644
--- a/app/user.go
+++ b/app/user.go
@@ -862,22 +862,6 @@ func (a *App) UpdatePasswordAsUser(userId, currentPassword, newPassword string)
return a.UpdatePasswordSendEmail(user, newPassword, T("api.user.update_password.menu"))
}
-func (a *App) UpdateNonSSOUserActive(userId string, active bool) (*model.User, *model.AppError) {
- var user *model.User
- var err *model.AppError
- if user, err = a.GetUser(userId); err != nil {
- return nil, err
- }
-
- if user.IsSSOUser() {
- err := model.NewAppError("UpdateActive", "api.user.update_active.no_deactivate_sso.app_error", nil, "userId="+user.Id, http.StatusBadRequest)
- err.StatusCode = http.StatusBadRequest
- return nil, err
- }
-
- return a.UpdateActive(user, active)
-}
-
func (a *App) UpdateActive(user *model.User, active bool) (*model.User, *model.AppError) {
if active {
user.DeleteAt = 0
@@ -895,9 +879,6 @@ func (a *App) UpdateActive(user *model.User, active bool) (*model.User, *model.A
}
ruser := result.Data.([2]*model.User)[0]
- options := a.Config().GetSanitizeOptions()
- options["passwordupdate"] = false
- ruser.Sanitize(options)
if !active {
a.SetStatusOffline(ruser.Id, false)