Sha256: 8092c0efc5f9fb0c5e01c8eaa02d5e5d4ad139a644748188856a852b4988bc7a
Contents?: true
Size: 545 Bytes
Versions: 30
Compression:
Stored size: 545 Bytes
Contents
module UcbRailsUser module UserSessionManager class ActiveInUserTable < Base def login(uid) self.uid = uid if user_table_entry && people_ou_entry UcbRailsUser::UserLdapService.update_user_from_ldap_entry(people_ou_entry).tap do |user| user.touch(:last_login_at) end else false end end def current_user(uid) User.find_by_ldap_uid(uid) end private def user_table_entry active_user end end end end
Version data entries
30 entries across 30 versions & 1 rubygems