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

Change authorization key: Use phone_number instead of email #84

Closed
antoniusostermann opened this issue Dec 12, 2014 · 1 comment
Closed

Comments

@antoniusostermann
Copy link

I am using devise_token_auth in combination with the corresponding ng-module in a mobile app. But instead of using the clients email for authorization, I wanna use the clients phone number. What do I have to change / where can I change the used "authorization key" and the registration process (like it is done in device configuration options)?

@lynndylanhurley
Copy link
Owner

@canifex - you will need to override the create method of DeviseTokenAuth::SessionsController. See this section of the readme for info on extending controllers.

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

No branches or pull requests

2 participants