Class: FTPMVC::Authenticator::Basic
- Inherits:
-
Object
- Object
- FTPMVC::Authenticator::Basic
- Defined in:
- lib/ftpmvc/authenticator/basic.rb
Instance Method Summary collapse
- #authenticate(username, password) ⇒ Object
-
#initialize(options = {}) ⇒ Basic
constructor
A new instance of Basic.
Constructor Details
#initialize(options = {}) ⇒ Basic
Returns a new instance of Basic.
4 5 6 |
# File 'lib/ftpmvc/authenticator/basic.rb', line 4 def initialize(={}) @users = [:users] end |
Instance Method Details
#authenticate(username, password) ⇒ Object
8 9 10 |
# File 'lib/ftpmvc/authenticator/basic.rb', line 8 def authenticate(username, password) @users[username] == password end |