Class: StandardId::Web::ResetPasswordStartForm

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
app/forms/standard_id/web/reset_password_start_form.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#password_credentialObject (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

#tokenObject (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

#submitObject



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