registration implemented

This commit is contained in:
Egor Matveev
2021-07-11 18:46:05 +03:00
parent d32578a3fb
commit 5aea7916ab
9 changed files with 163 additions and 46 deletions

View File

@@ -11,11 +11,6 @@
<link rel="stylesheet" type="text/css" href={% static "css/styles.css" %}>
<script src="https://use.fontawesome.com/49b98aaeb5.js"></script>
<script type="text/javascript" src={% static "js/scripts.js" %}></script>
<script type="text/javascript">
function restore() {
}
</script>
<style type="text/css">
.center {
height: 400px;
@@ -52,9 +47,10 @@
</h1>
</div>
<div>
<p style="color: red;">{{ error_message }}</p>
<form method="POST">
{% csrf_token %}
<input type="text" class="form" name="email" placeholder="email"><br>
<input type="text" class="form" name="email" placeholder="email or username"><br>
<input type="password" class="form" name="password" placeholder="password"><br>
<input type="submit" value="Вход" class="sub btn btn-dark form">
</form>
@@ -62,6 +58,9 @@
<div>
<button onclick="window.location.href='/restore'" class="sub btn btn-dark form">Восстановить пароль</button>
</div>
<div>
<button onclick="window.location.href='/register'" class="sub btn btn-dark form">Регистрация</button>
</div>
</center>
</div>
</body>