Sha256: a729269009b0c1f0df6dc72ea959ca6923e94d6cdd8892dad23a568441143e9d
Contents?: true
Size: 749 Bytes
Versions: 13
Compression:
Stored size: 749 Bytes
Contents
module UcbRails module UserSessionManager class ActiveInUserTable < Base def login(uid) self.uid = uid if user_table_entry && people_ou_entry UcbRails::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) UcbRails::User.find_by_uid(uid) end def log_request(user) user.present? and user.touch(:last_request_at) end def logout(user) user.present? and user.touch(:last_logout_at) end private def user_table_entry active_user end end end end
Version data entries
13 entries across 13 versions & 1 rubygems