AgPerry's picture
Add files using upload-large-folder tool
7f8e190 verified
Raw History Blame Contribute Delete
3.2 kB
{% extends "base.html" %}
{% import "_partials.html" as ui %}
{# The request step reproduces password-reset-desktop exactly, including its
lead sentence and the right-aligned blue Continue button; the captured page
carries no human-verification widget, so this clone adds none. The code and
new-password step below was never captured and is locally designed. #}
{% block title %}Password Reset - LeetCode{% endblock %}
{% block header %}{{ ui.app_header(member, '', false) }}{% endblock %}
{% block main %}
<div class="auth auth--top">
<div class="auth__panel">
<h1 class="auth__panel-title">
<span class="auth__info" aria-hidden="true">
<svg viewBox="0 0 16 16" width="16" height="16" focusable="false"><circle cx="8" cy="8" r="7" fill="currentColor"/><path d="M8 7v4.4M8 4.6v.9" stroke="#ffffff" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
Password Reset
</h1>
{% if stage == 'verify' %}
<p class="auth__panel-lead">Enter the verification code we sent and choose a new password.</p>
{% if notice %}<p class="auth__notice" role="status">{{ notice }}</p>{% endif %}
<form class="auth__panel-form" method="post" action="/accounts/password/reset/confirm/" novalidate>
<label class="auth__field">
<span class="visually-hidden">Verification code</span>
<input type="text" name="code" inputmode="numeric" maxlength="6" placeholder="Verification code" autocomplete="one-time-code" required>
</label>
{{ ui.field_error(errors, 'code') }}
<label class="auth__field">
<span class="visually-hidden">New password</span>
<input type="password" name="password" placeholder="New password" autocomplete="new-password" required>
</label>
{{ ui.field_error(errors, 'password') }}
<div class="auth__panel-actions">
<button class="auth__continue" type="submit">Reset Password</button>
</div>
</form>
<div class="auth__row">
<a href="/accounts/message/?purpose=password-reset">Open the message</a>
<a href="/accounts/password/reset/">Use a different address</a>
</div>
{% else %}
<p class="auth__panel-lead">Forgot your password? Enter your email address, and we&rsquo;ll send you a verification code to reset it.</p>
{% if notice %}<p class="auth__notice" role="status">{{ notice }}</p>{% endif %}
<form class="auth__panel-form" method="post" action="/accounts/password/reset/" novalidate>
<label class="auth__field">
<span class="visually-hidden">Email address</span>
<input type="email" name="email" value="{{ values.email|default('') }}" placeholder="Email address" autocomplete="email" required>
</label>
{{ ui.field_error(errors, 'email') }}
{{ ui.field_error(errors, 'verification') }}
<input type="hidden" name="human_verification" value="{{ verification }}">
<input type="hidden" name="human_check" value="on">
<div class="auth__panel-actions">
<button class="auth__continue" type="submit">Continue</button>
</div>
</form>
{% endif %}
</div>
</div>
{% endblock %}
{% block footer %}{{ ui.app_footer('white') }}{% endblock %}