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

URL changes for reset password, forgot password and register. #3651

Merged
merged 2 commits into from
Aug 4, 2016

Conversation

sheetaluk
Copy link
Contributor

@sheetaluk sheetaluk commented Aug 2, 2016

https://trello.com/c/Yiraeqzs/408-logged-out-form-url-changes-and-redirects

Related to:
hypothesis/client#68

Test scenarios:

  • In /: create new user
  • In acount/settings:
    changed email
    changed password
  • In stream:
    logged out and logged in with new password,
    forgot password and reset it

N.B. We will need to coordinate the deployment of this change carefully, as we may need to update our nginx configuration._​

@sheetaluk sheetaluk added the WIP label Aug 2, 2016
config.add_route('activate', '/activate/{id}/{code}')
config.add_route('forgot_password', '/forgot_password')
config.add_route('forgot-password', '/forgot-password')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we tend to use underscores for route names (the first argument).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failing tests will also be fixed when you change the route name back to forgot_password.

@sheetaluk sheetaluk force-pushed the url_redirects branch 2 times, most recently from 39bfece to d0d66b3 Compare August 3, 2016 14:07
@sheetaluk sheetaluk removed the WIP label Aug 3, 2016
@sheetaluk sheetaluk changed the title URL changes for forgot_password and register. URL changes for reset password, forgot password and register. Aug 3, 2016
…register.

https://trello.com/c/Yiraeqzs/408-logged-out-form-url-changes-and-redirects

To test:
In /: create new user
In acount/settings: changed email changed password
In stream: logged out and logged in with new password, forgot password and reset it
@chdorner
Copy link
Contributor

chdorner commented Aug 3, 2016

This is looking great! 👍
I will take some time either later today or otherwise tomorrow morning to do some digging in case there are some places we forgot to change in h and the client. Will merge it after that

It was removed in 0f747a0 and is not
needed anymore.
@chdorner
Copy link
Contributor

chdorner commented Aug 4, 2016

I'll merge this now. As Nick mentioned on Slack, it would be nice to have the reset_password route be redirected as well but that will include some changes to the redirecting tween. We can do that change in a separate PR.

@chdorner chdorner merged commit 3ec9758 into master Aug 4, 2016
@chdorner chdorner deleted the url_redirects branch August 4, 2016 12:26
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.

2 participants