stevedowney/ucb_rails

View on GitHub
app/models/ucb_rails/user_session_manager/in_people_ou_add_to_users_table.rb

Summary

Maintainability
A
0 mins
Test Coverage
module UcbRails
  module UserSessionManager

    class InPeopleOuAddToUsersTable < ActiveInUserTable
      
      def login(uid)
        self.uid = uid
        
        if people_ou_entry.present?
          UcbRails::UserLdapService.create_or_update_user_from_entry(people_ou_entry)
        else
          nil
        end
      end
      
    end

  end
end