working on forgotten pw
parent
f1f54ccd53
commit
92eb3e811e
5
app.py
5
app.py
|
@ -233,6 +233,11 @@ def confirm_email(confirmation_key):
|
|||
flash("Incorrect confirmation key.")
|
||||
return redirect(url_for('user_dashboard'))
|
||||
|
||||
@app.route('/forgot_password/', methods=["GET", "POST"])
|
||||
def forgot_password():
|
||||
if request.method == "GET":
|
||||
return redirect(url_for('login'))
|
||||
|
||||
@app.route('/user/', methods=["GET", "POST"])
|
||||
@decorators.login_required
|
||||
def user_dashboard():
|
||||
|
|
|
@ -15,7 +15,14 @@
|
|||
<label for="password">Password</label>
|
||||
<input name="_csrf_token" type="hidden" value="{{ csrf_token() }}" />
|
||||
</div>
|
||||
<button class="btn waves-effect waves-light right" type="submit">Login</button>
|
||||
<div class="row no-bot">
|
||||
<div class="col s6">
|
||||
<a href="{{ url_for('forgot_password') }}">Forgot password?</a>
|
||||
</div>
|
||||
<div class="col s6">
|
||||
<button class="btn waves-effect waves-light right" type="submit">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue