Module: Ixtlan::UserManagement::SessionPlugin
- Defined in:
- lib/ixtlan/user_management/session_plugin.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#log(msg) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/ixtlan/user_management/session_plugin.rb', line 33 def log( msg ) if self.respond_to? :audit audit( msg, { :username => login } ) else warn( "[#{login}] #{msg}" ) end end |
#login ⇒ Object
48 49 50 |
# File 'lib/ixtlan/user_management/session_plugin.rb', line 48 def login login_and_password[ 0 ] end |
#login_and_password ⇒ Object
41 42 43 44 45 46 |
# File 'lib/ixtlan/user_management/session_plugin.rb', line 41 def login_and_password source = parse_request_body source = req if source && source.empty? auth = source[ 'authentication' ] || source [ auth[ 'login' ] || auth[ 'email' ], auth[ 'password' ] ] end |