Class: Trestle::Auth::NullUser
- Inherits:
-
Object
- Object
- Trestle::Auth::NullUser
- Defined in:
- lib/trestle/auth/null_user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.password ⇒ Object
8 9 10 |
# File 'lib/trestle/auth/null_user.rb', line 8 def self.password @password ||= BCrypt::Password.create("password", cost: BCrypt::Engine.cost) end |
Instance Method Details
#authenticate ⇒ Object
4 5 6 |
# File 'lib/trestle/auth/null_user.rb', line 4 def authenticate(*) BCrypt::Password.new(self.class.password).is_password?("incorrect") end |