Class: StandardId::Web::ResetPasswordStartForm
- Inherits:
-
Object
- Object
- StandardId::Web::ResetPasswordStartForm
- Includes:
- ActiveModel::Attributes, ActiveModel::Model
- Defined in:
- app/forms/standard_id/web/reset_password_start_form.rb
Instance Attribute Summary collapse
-
#password_credential ⇒ Object
readonly
Returns the value of attribute password_credential.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#password_credential ⇒ Object (readonly)
Returns the value of attribute password_credential.
9 10 11 |
# File 'app/forms/standard_id/web/reset_password_start_form.rb', line 9 def password_credential @password_credential end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'app/forms/standard_id/web/reset_password_start_form.rb', line 9 def token @token end |
Instance Method Details
#submit ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/forms/standard_id/web/reset_password_start_form.rb', line 13 def submit return false unless valid? if token.present? # TODO: send reset link via email end true end |