Class: UcbRailsUser::UserSessionManager::InPeopleOu

Inherits:
Base
  • Object
show all
Defined in:
app/models/ucb_rails_user/user_session_manager/in_people_ou.rb

Instance Attribute Summary

Attributes inherited from Base

#uid

Instance Method Summary collapse

Methods inherited from Base

current_user, current_user=, #log_request, #logout, #people_ou_entry

Instance Method Details

#current_user(uid) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'app/models/ucb_rails_user/user_session_manager/in_people_ou.rb', line 15

def current_user(uid)
  self.uid = uid

  if people_ou_entry.present?
    ldap_person_user_wrapper(people_ou_entry)
  else
    nil
  end
end

#login(uid) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/models/ucb_rails_user/user_session_manager/in_people_ou.rb', line 5

def (uid)
  self.uid = uid

  if people_ou_entry.present?
    current_user(uid)
  else
    false
  end
end