Added function to register new user
This commit is contained in:
@@ -1,32 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
<h2>Login</h2>
|
||||
{% extends "base.html" %}
|
||||
|
||||
<label for="username">Username: </label>
|
||||
<input type="text" name="username" value="" placeholder="Type your username">
|
||||
{% block title %}Login{% endblock %}
|
||||
|
||||
<br>
|
||||
{% block body %}
|
||||
<form method="post">
|
||||
<h2>Login</h2>
|
||||
|
||||
<label for="password">Password: </label>
|
||||
<input type="password" name="password" value="" placeholder="Type your password">
|
||||
<label for="username">Username: </label>
|
||||
<input type="text" name="username" value="" placeholder="Type your username">
|
||||
|
||||
<!-- method -->
|
||||
<input type="hidden" name="_method" value="put">
|
||||
<br>
|
||||
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
<label for="password">Password: </label>
|
||||
<input type="password" name="password" value="" placeholder="Type your password">
|
||||
|
||||
<br>
|
||||
<input type="hidden" name="_method" value="put">
|
||||
|
||||
<button type="submit" name="login">Login</button>
|
||||
</form>
|
||||
<input type="hidden" name="_token" value="{{ token }}">
|
||||
|
||||
<a href="/">-> Alternative route</a>
|
||||
</body>
|
||||
</html>
|
||||
<br>
|
||||
|
||||
<button type="submit" name="login">Login</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user