Basic register/login/logout
This commit is contained in:
1 parent
3551cd1feb
commit
f3b6d797f6
9 files changed
+97
-5
No files matched your search
@@ -0,0 +1,20 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Login
|
||||
{% endblock %}
|
||||
|
||||
{% block style %}
|
||||
{% load static %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="POST" action="/login/">
|
||||
{% csrf_token %}
|
||||
<label type="text">Username</label>
|
||||
<input type="text" name="username"></br>
|
||||
<label type="text">Password</label>
|
||||
<input type="password" name="password"></br>
|
||||
<input type="submit" name="submit" value="Login">
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,22 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Register
|
||||
{% endblock %}
|
||||
|
||||
{% block style %}
|
||||
{% load static %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="registerForm" method="POST" action="/register/">
|
||||
{% csrf_token %}
|
||||
<label type="text">Username</label>
|
||||
<input type="text" name="username"></br>
|
||||
<label type="text">Password</label>
|
||||
<input type="password" name="password"></br>
|
||||
<label type="text">Email</label>
|
||||
<input type="text" name="email"></br>
|
||||
<input type="submit" name="submit" value="Create User">
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user