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

Version Path
ucb_rails_user-7.0.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-6.2.2 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-6.2.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-6.1.1 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-6.1.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-6.0.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-5.0.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.1.2 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.1.1 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.1.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.7 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.6 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.5 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.4 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.3 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.2 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.1 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.0 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-3.0.2 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb
ucb_rails_user-4.0.0.beta1 app/models/ucb_rails_user/user_session_manager/active_in_user_table.rb