File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class UsersController < Api::V8::BaseController
70
70
schema do
71
71
key :title , :status
72
72
key :required , [ :status ]
73
- property :status , type : :string , example : 'Password managed by courses.mooc.fi set to true.'
73
+ property :status , type : :string , example : 'Password managed by courses.mooc.fi set to true and password deleted .'
74
74
end
75
75
end
76
76
end
@@ -180,7 +180,6 @@ def set_password_managed_by_courses_mooc_fi
180
180
@user . password_hash = nil
181
181
@user . salt = nil
182
182
@user . argon_hash = nil
183
- @user . save!
184
183
raise ActiveRecord ::Rollback if !@user . errors . empty? || !@user . save
185
184
return render json : {
186
185
status : 'Password managed by courses.mooc.fi set to true and password deleted.'
You can’t perform that action at this time.
0 commit comments