-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Angel/ability to remove user from web (#44)
* feat: write delete user from web and tests * test: fix errors on multiple tests
- Loading branch information
1 parent
666a0a7
commit bb007a3
Showing
17 changed files
with
854 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ post { | |
|
||
body:json { | ||
{ | ||
"username": "ELki", | ||
"email": "[email protected]", | ||
"password": "elki12345" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "base.html.jinja" %} {% block topcontainer %} | ||
<h2>Delete your account</h2> | ||
<form method="post" action="/me/delete"> | ||
{{ form.csrf_token }} | ||
{{ form.hidden_tag() }} | ||
<div> | ||
{{ form.email.label }}<br> | ||
{{ form.email }} | ||
{% for error in form.email.errors %} | ||
<span style="color: red;">{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
<div> | ||
{{ form.password.label }}<br> | ||
{{ form.password }} | ||
{% for error in form.password.errors %} | ||
<span style="color: red;">{{ error }}</span> | ||
{% endfor %} | ||
</div> | ||
<br> | ||
<input type="submit" value="Submit"> | ||
</form> | ||
{%endblock%} |
4 changes: 4 additions & 0 deletions
4
src/blueprints/legal/templates/delete_successfully.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% extends "base.html.jinja" %} {% block topcontainer %} | ||
<h2>Bye 👋</h2> | ||
<p>{{ name }}. Your has been successfully deleted.</p> | ||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% extends "base.html.jinja" %} {% block topcontainer %} | ||
<h2>Oupss!</h2> | ||
<p>Somethings wrong : {{ error }}</p> | ||
{%endblock%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.