Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow other provider than email when logins #964

Merged

Conversation

MaicolBen
Copy link
Collaborator

@MaicolBen MaicolBen commented Sep 27, 2017

Resolves #893
Resolves #859

I am not sure about adding a method overridable in the controller, maybe it should be a constant in user.

@lynndylanhurley
Copy link
Owner

Thanks @MaicolBen!!

@codeundercoverdev
Copy link

Where actually is the answer to this question? I have been getting redirected from github issue to github issue saying the answer is somewhere but all I see is a list of github issues refering the problem with zero code written anywhere?

@SanketKarve
Copy link

You need to override the provider method in session controller. This works for me:

def provider
  super
  'custom-provider-name'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change provider when sessions controller How to authenticate user using username using this gem ?
4 participants