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

Devise token auth not found routing error #379

Closed
ghost opened this issue Sep 18, 2015 · 2 comments
Closed

Devise token auth not found routing error #379

ghost opened this issue Sep 18, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 18, 2015

My application is sending emails to confirm the new registration.

The client received that email and click the link. The account is confirmed and the client can sign in.
But if the user press again that link, he receives a routing error:

confirmations_controller.rb - line 29.

When the confirmation token is not found, we should get a proper message instead of a routing error.

The same is happening with password recover.

@ghost
Copy link
Author

ghost commented Sep 18, 2015

I created my own method to recover from errors when a 404 is raised from: api/v1/auth/confirmation/. In this way I can provide a nice error to the user.
Related with the edit password, I wasn't succeed because it is returning a 404 json.
I'm not so good in Rails. Another suggestions are welcomed.

I'm using devise_token-auth with ng-token-auth.

@ghost
Copy link
Author

ghost commented Sep 21, 2015

The following pull request:
Semantic Registrations Error Status Codes
#376

Solve the problem with registration link. The password link remain with problem when you click it for the second time.

@ghost ghost closed this as completed Oct 14, 2015
This issue was closed.
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

0 participants