it sends a magic link when you log in
This commit is contained in:
38
capsulflask/templates/base.html
Normal file
38
capsulflask/templates/base.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="/icon.png" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
<div class="float-right">
|
||||
{% if g.user %}
|
||||
<span>{{ g.user['username'] }}</span>
|
||||
<a href="{{ url_for('auth.logout') }}">Log Out</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('auth.login') }}">Log In</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<h1>
|
||||
capsul
|
||||
</h1>
|
||||
|
||||
</header>
|
||||
<main>
|
||||
{% for message in get_flashed_messages() %}
|
||||
<div class="flash">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
<footer>
|
||||
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
6
capsulflask/templates/check-your-email.html
Normal file
6
capsulflask/templates/check-your-email.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
Check Your Email My Dude
|
||||
{% endblock %}
|
6
capsulflask/templates/index.html
Normal file
6
capsulflask/templates/index.html
Normal file
@ -0,0 +1,6 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
Index Page!
|
||||
{% endblock %}
|
10
capsulflask/templates/login.html
Normal file
10
capsulflask/templates/login.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
<label for="email">Email Address</label>
|
||||
<input name="email" id="email" required>
|
||||
<input type="submit" value="Log In">
|
||||
</form>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user