Commit bd88c704 by Đường Sỹ Hoàng

Fixed identation

parent 62e0066e
......@@ -11,7 +11,7 @@ class User < ApplicationRecord
has_secure_password
class << self
class << self
# Returns the hash digest of the given string.
def digest(string)
cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST : BCrypt::Engine.cost
......@@ -28,7 +28,6 @@ class << self
def remember
self.remember_token = self.class.new_token
update_attribute(:remember_digest, self.class.digest(remember_token))
#BCrypt::Password.new(remember_digest).is_password?(remember_token)
end
# Returns true if the given token matches the digest.
......
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