Browse Source

add new files for set and change password

testing
Burathar 4 years ago
parent
commit
1502d74973
  1. 18
      app/templates/auth/change_password.html
  2. 6
      app/templates/user_profile.html

18
app/templates/auth/change_password.html

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% block app_content %}
<div class="row">
<div class="col-xs-0 col-md-1"></div>
<div class="col-xs-8 col-md-4">
{% if current_user.password_hash %}
<h1>Change Password</h1>
{% else %}
<h1>Set Password</h1>
{% endif %}
{{ wtf.quick_form(form, button_map={'submit': 'primary'}) }}
<br>
</div>
<div class="col-xs-0 col-md-7"></div>
</div>
{% endblock %}

6
app/templates/user_profile.html

@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% block app_content %}
<h1>My Profile</h1>
<a href="{{ url_for('auth.change_password') }}"><button class="btn btn-primary">Change Password</button></a>
{% endblock %}
Loading…
Cancel
Save