Module: Pythia::InstanceMethodsOnActivation

Defined in:
lib/pythia.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



35
36
37
# File 'lib/pythia.rb', line 35

def password
  @password
end

Instance Method Details

#authenticate(unencrypted_password) ⇒ Object



30
31
32
33
# File 'lib/pythia.rb', line 30

def authenticate(unencrypted_password)
  check = get_pythia_password(unencrypted_password)
  check.eql?(password_digest) && self
end

#password_confirmation=(unencrypted_password) ⇒ Object



49
50
51
# File 'lib/pythia.rb', line 49

def password_confirmation=(unencrypted_password)
  @password_confirmation = unencrypted_password
end