Created
March 9, 2011 09:25
-
-
Save kineticac/861933 to your computer and use it in GitHub Desktop.
Ryan Bates' AuthenticationsController
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
| # these lines of code does not take into account a facebook token if the user is already connected | |
| elsif current_user | |
| current_user.authentications.create!(:provider => omniauth['provider'], :uid => omniauth['uid']) | |
| flash[:notice] = "Authentication successful." | |
| redirect_to authentications_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment