Add a way to reset password (WIP)

This commit is contained in:
Greg Burri 2024-11-06 17:52:16 +01:00
parent ebdcb6a90a
commit 5d343c273f
8 changed files with 265 additions and 12 deletions

View file

@ -0,0 +1,14 @@
{% extends "base_with_header.html" %}
{% block main_container %}
<div class="content">
<form action="/signup" method="post">
<label for="email_field">Your email address</label>
<input id="email_field" type="text" name="email" value="{{ email }}" autocapitalize="none" autocomplete="email" autofocus="autofocus" />
{{ message_email }}
<input type="submit" name="commit" value="Ask reset" />
</form>
{{ message }}
</div>
{% endblock %}

View file

@ -7,9 +7,13 @@
{% match user %}
{% when Some with (user) %}
<a class="create-recipe" href="/recipe/new" >Create a new recipe</a>
<span>{{ user.email }} / <a href="/signout" />Sign out</a></span>
<span><a href="/edit_profile">{{ user.email }}</a> / <a href="/signout" />Sign out</a></span>
{% when None %}
<span><a href="/signin" >Sign in</a> / <a href="/signup">Sign up</a></span>
<span>
<a href="/signin" >Sign in</a>/
<a href="/signup">Sign up</a>/
<a href="/lost_password">Lost password</a>
</span>
{% endmatch %}
</div>