mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 17:16:34 +03:00
4d9e33e9a8
In response to Issue 116 at https://github.com/Tivix/django-rest-auth/issues/116 * Add csrf_token tags on demo templates (was returning CSRF page) * Update settings file for the demo login (was returning message that email was required when template only shows username and password fields)
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
<!-- Signup form -->
|
|
<form class="form-horizontal ajax-post" role="form" action="{% url 'rest_password_reset_confirm' %}">{% csrf_token %}
|
|
<div class="form-group">
|
|
<label for="uid" class="col-sm-2 control-label">Uid</label>
|
|
<div class="col-sm-10">
|
|
<input name="uid" type="text" class="form-control" id="uid" placeholder="Uid">
|
|
<p class="help-block">Uid value sent in email</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="token" class="col-sm-2 control-label">Token</label>
|
|
<div class="col-sm-10">
|
|
<input name="token" type="text" class="form-control" id="token" placeholder="Token">
|
|
<p class="help-block">Token value sent in email</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="new_password1" class="col-sm-2 control-label">Password</label>
|
|
<div class="col-sm-10">
|
|
<input name="new_password1" type="password" class="form-control" id="new_password1" placeholder="Password">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="new_password2" class="col-sm-2 control-label">Repeat password</label>
|
|
<div class="col-sm-10">
|
|
<input name="new_password2" type="password" class="form-control" id="new_password2" placeholder="Repeat password">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-default">Set new password</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group api-response"></div>
|
|
</form>
|