Commit d8634175 by Mai Hoang Thai Ha

fix

parent 96982abf
Pipeline #1281 canceled with stages
in 0 seconds
......@@ -46,21 +46,21 @@ class User < ApplicationRecord
update_attribute(:activated_at, Time.zone.now)
end
# Sends activation email
# Sends activation email
def send_activation_email
UserMailer.account_activation(self).deliver_now
end
private
# Convaerts email to all lowr_case
# Convaerts email to all lowr_case
def downcase_email
self.email = email.downcase
end
# Creates and assigns the activation token digest
# Creates and assigns the activation token digest
def create_activation_digest
self.activation_token = User.new_token
self.activation_digest = User.digest(activation_token)
self.activation_digest = User.digest(activation_token)
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment