Created
March 26, 2011 09:51
-
-
Save Arcath/888172 to your computer and use it in GitHub Desktop.
LDAP Omniauth session code (pre ldap improving)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
user = User.find_by_provider_and_uid("ldap",params[:username]) || User.create_with_omniauth("ldap",params[:username]) | |
session[:user_id] = user.id | |
redirect_to "/pages/splash" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment