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 =>  } )
  else
    warn( "[#{}] #{msg}" )
  end
end

#loginObject



48
49
50
# File 'lib/ixtlan/user_management/session_plugin.rb', line 48

def 
  [ 0 ]
end

#login_and_passwordObject



41
42
43
44
45
46
# File 'lib/ixtlan/user_management/session_plugin.rb', line 41

def 
  source = parse_request_body
  source = req if source && source.empty?
  auth = source[ 'authentication' ] || source
  [ auth[ 'login' ] || auth[ 'email' ], auth[ 'password' ] ]
end