Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Commit

Permalink
password resets using warehouse only
Browse files Browse the repository at this point in the history
we seem to have subtly broken pypi-legacy's reset flow
  • Loading branch information
ewdurbin committed Apr 14, 2018
1 parent 127edc4 commit d7a3e77
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions templates/password_reset.pt
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,18 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="standard_template/macros/page">
<metal:fill fill-slot="body">
<p>To reset your account password please enter the username below.</p>

<p tal:condition="data/retry | nothing"><strong>You must supply a
username!</strong></p>
<p>Initiating password resets via site is no longer supported.</p>

<form tal:attributes="action app/url_path" method="POST">
<input type="hidden" name=":action" value="forgotten_password" />
<table class="form">
<tr>
<th>Username:</th>
<td><input name="name" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Reset password" /></td>
</tr>
</table>
</form>

<p>An email will be sent to you at the account registered address -
please follow the instructions within it to complete the reset process.</p>
<p>Please reset your password using
<tal:x tal:condition="python:'testpypi' in app.config.url">
<a href="https://test.pypi.org/account/request-password-reset/">the Warehouse test instance</a>
</tal:x>
<tal:x tal:condition="python:'testpypi' not in app.config.url">
<a href="https://pypi.org/account/request-password-reset/">Warehouse</a>
</tal:x>
in order to continue.
</p>

</metal:fill>
</html>

0 comments on commit d7a3e77

Please sign in to comment.