app/models/user.rb
# Use Rails' "has_secure_password" so that local accounts' password is
# is *only* stored as a bcrypt digest in password_digest
# (an iterated per-use salted hash).  We want users to be able to edit
# their profiles later, so disable the default password validation
# since it interferes with editing (see "validates :password" below).
Use Rails' "has_secure_password" so that local accounts' password is
is *only* stored as a bcrypt digest in password_digest
(an iterated per-use salted hash).  We want users to be able to edit
their profiles later, so disable the default password validation
since it interferes with editing .
Use Rails ' " has_secure_password " so that local accounts ' password is is * only * stored as a bcrypt digest in password_digest ( an iterated per - use salted hash ) . We want users to be able to edit their profiles later so disable the default password validation since it interferes with editing .
def email_if_decryptable
    email
  rescue OpenSSL::Cipher::CipherError
    'CANNOT_DECRYPT'
  end
def email_if_decryptable email rescue OpenSSL :: Cipher :: CipherError 'CANNOT_DECRYPT' end
Use Rails' "has_secure_password" so that local accounts' password is
is *only* stored as a bcrypt digest in password_digest
(an iterated per-use salted hash).
Use Rails ' " has_secure_password " so that local accounts ' password is is * only * stored as a bcrypt digest in password_digest ( an iterated per - use salted hash ) .