Class: Toot::Auth::ChecksCredentials
- Inherits:
-
Object
- Object
- Toot::Auth::ChecksCredentials
- Defined in:
- lib/toot/auth/checks_credentials.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
14 15 16 |
# File 'lib/toot/auth/checks_credentials.rb', line 14 def self.call(*args) new.call(*args) end |
Instance Method Details
#call(store_key:, username:, password:) ⇒ Object
4 5 6 7 8 |
# File 'lib/toot/auth/checks_credentials.rb', line 4 def call(store_key:, username:, password:) return false if username.empty? || password.empty? stored_password(store_key, username) == Credentials.new(username, password).hashed_password end |