Class: Htpasswd::Acls::Plain

Inherits:
Base
  • Object
show all
Defined in:
lib/htpasswd/acls/plain.rb

Instance Method Summary collapse

Methods inherited from Base

[], #authorize_type, #authorize_user, #authorized?, #initialize, #pass, register, #type, #user

Constructor Details

This class inherits a constructor from Htpasswd::Acls::Base

Instance Method Details

#authorize_pass(scheme) ⇒ Object



4
5
6
7
# File 'lib/htpasswd/acls/plain.rb', line 4

def authorize_pass(scheme)
  pass == scheme.pass or
    raise IncorrectPassword
end