Class: Thincloud::Authentication::UpdateIdentityPassword
- Inherits:
-
Object
- Object
- Thincloud::Authentication::UpdateIdentityPassword
- Defined in:
- app/services/thincloud/authentication/update_identity_password.rb
Overview
Public: Execute the workflow steps to reset a password for an Identity
Class Method Summary collapse
Class Method Details
.call(identity, params) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/services/thincloud/authentication/update_identity_password.rb', line 5 def self.call(identity, params) identity.password = params[:password] identity.password_confirmation = params[:password_confirmation] identity.save! identity.clear_password_reset! rescue ActiveRecord::RecordInvalid identity.reload false end |