class Trestle::Auth::NullUser
Public Class Methods
password()
click to toggle source
# File lib/trestle/auth/null_user.rb, line 8 def self.password @password ||= BCrypt::Password.create("password", cost: BCrypt::Engine.cost) end
Public Instance Methods
authenticate(*)
click to toggle source
# File lib/trestle/auth/null_user.rb, line 4 def authenticate(*) BCrypt::Password.new(self.class.password).is_password?("incorrect") end