2013-07-29 23:03:31 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
2019-10-23 07:46:34 +02:00
|
|
|
{% set entrypoint = "register" %}
|
2013-04-08 21:24:44 +02:00
|
|
|
|
2022-09-06 12:04:03 +02:00
|
|
|
{% block title %}
|
|
|
|
<title>{{ _("Set a new password") }} | Zulip</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-11-05 19:53:16 +01:00
|
|
|
{% block portico_content %}
|
|
|
|
|
2017-05-04 07:48:53 +02:00
|
|
|
<div class="password-container flex full-page new-style">
|
|
|
|
|
|
|
|
<!-- wrapper for flex content -->
|
|
|
|
<div>
|
|
|
|
<div class="get-started">
|
2020-06-22 23:58:57 +02:00
|
|
|
<h1>{{ _('Set a new password.') }}</h1>
|
2016-08-16 19:28:02 +02:00
|
|
|
</div>
|
2017-05-04 07:48:53 +02:00
|
|
|
<div class="password-reset white-box">
|
|
|
|
<!-- TODO: Ask about meta viewport 1:1 scaling -->
|
2012-11-05 19:53:16 +01:00
|
|
|
|
2017-05-04 07:48:53 +02:00
|
|
|
{% if validlink %}
|
2023-01-10 08:46:09 +01:00
|
|
|
<form method="post" id="password_reset" autocomplete="off">
|
2017-05-04 07:48:53 +02:00
|
|
|
{{ csrf_input }}
|
|
|
|
<div class="input-box" id="email-section">
|
|
|
|
<label for="id_email">{{ _("Email") }}</label>
|
|
|
|
<div>
|
2020-03-30 17:29:02 +02:00
|
|
|
<input type="text" name="name" placeholder='{{ form.user.delivery_email }}' disabled />
|
2017-05-04 07:48:53 +02:00
|
|
|
</div>
|
2017-02-24 16:42:13 +01:00
|
|
|
</div>
|
2016-08-16 19:28:02 +02:00
|
|
|
|
2021-04-05 09:50:48 +02:00
|
|
|
<div class="input-box password-div">
|
2017-05-04 07:48:53 +02:00
|
|
|
<label for="id_new_password1" class="">{{ _('Password') }}</label>
|
2021-04-05 09:50:48 +02:00
|
|
|
<input id="id_new_password1" class="required" type="password" name="new_password1" autocomplete="new-password"
|
2018-04-03 10:07:23 +02:00
|
|
|
value="{% if form.new_password1.value() %}{{ form.new_password1.value() }}{% endif %}"
|
|
|
|
maxlength="100"
|
|
|
|
data-min-length="{{password_min_length}}"
|
2019-09-13 20:56:51 +02:00
|
|
|
data-min-guesses="{{password_min_guesses}}" autofocus required />
|
2024-03-01 02:29:45 +01:00
|
|
|
<i class="fa fa-eye-slash password_visibility_toggle" role="button" tabindex="0"></i>
|
2016-08-16 19:25:18 +02:00
|
|
|
{% if form.new_password1.errors %}
|
|
|
|
{% for error in form.new_password1.errors %}
|
2017-02-24 16:42:13 +01:00
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
2016-08-16 19:25:18 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-05-04 07:48:53 +02:00
|
|
|
<div class="input-box">
|
|
|
|
<div class="">
|
|
|
|
<div class="progress" id="pw_strength">
|
|
|
|
<div class="bar bar-danger" style="width: 10%;"></div>
|
|
|
|
</div>
|
2016-08-16 19:25:18 +02:00
|
|
|
</div>
|
2013-04-08 21:24:44 +02:00
|
|
|
</div>
|
2021-04-05 09:50:48 +02:00
|
|
|
<div class="input-box password-div">
|
2017-05-04 07:48:53 +02:00
|
|
|
<label for="id_new_password2" class="">{{ _('Confirm password') }}</label>
|
2021-04-05 09:50:48 +02:00
|
|
|
<input id="id_new_password2" class="required" type="password" name="new_password2" autocomplete="off"
|
2018-04-03 10:07:23 +02:00
|
|
|
value="{% if form.new_password2.value() %}{{ form.new_password2.value() }}{% endif %}"
|
|
|
|
maxlength="100" required />
|
2024-03-01 02:29:45 +01:00
|
|
|
<i class="fa fa-eye-slash password_visibility_toggle" role="button" tabindex="0"></i>
|
2016-08-16 19:25:18 +02:00
|
|
|
{% if form.new_password2.errors %}
|
|
|
|
{% for error in form.new_password2.errors %}
|
2017-02-24 16:42:13 +01:00
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
2016-08-16 19:25:18 +02:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-11-05 19:53:16 +01:00
|
|
|
|
2017-05-04 07:48:53 +02:00
|
|
|
<div class="input-box m-t-30">
|
|
|
|
<div class="centered-button">
|
|
|
|
<button type="submit" class="" value="Submit">Submit</button>
|
|
|
|
</div>
|
2016-08-16 19:25:18 +02:00
|
|
|
</div>
|
2017-05-04 07:48:53 +02:00
|
|
|
</form>
|
2016-08-16 19:25:18 +02:00
|
|
|
|
2017-05-04 07:48:53 +02:00
|
|
|
{% else %}
|
|
|
|
<p>{{ _('Sorry, the link you provided is invalid or has already been used.') }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2016-08-16 19:28:02 +02:00
|
|
|
</div>
|
2016-08-16 19:25:18 +02:00
|
|
|
</div>
|
2012-11-05 19:53:16 +01:00
|
|
|
|
|
|
|
{% endblock %}
|