diff --git a/flash_auth_app/project/db.sqlite b/flash_auth_app/project/db.sqlite index 63cb53e..00d5ba9 100644 Binary files a/flash_auth_app/project/db.sqlite and b/flash_auth_app/project/db.sqlite differ diff --git a/flash_auth_app/project/main.py b/flash_auth_app/project/main.py index 99c6ad9..44550d8 100644 --- a/flash_auth_app/project/main.py +++ b/flash_auth_app/project/main.py @@ -1,4 +1,4 @@ -from flask import Blueprint +from flask import Blueprint, render_template from flask_login import login_required, current_user from . import db diff --git a/flash_auth_app/project/templates/base.html b/flash_auth_app/project/templates/base.html index ebaf822..a7dd794 100644 --- a/flash_auth_app/project/templates/base.html +++ b/flash_auth_app/project/templates/base.html @@ -1,10 +1,59 @@ + + - - - - Runnerspace - - - - - + + + + + + + Flask Auth Example + + + + +
+ +
+ +
+ +
+
+ {% block content %} + {% endblock %} +
+
+
+ + + \ No newline at end of file diff --git a/flash_auth_app/project/templates/index.html b/flash_auth_app/project/templates/index.html index 357a399..d85cab5 100644 --- a/flash_auth_app/project/templates/index.html +++ b/flash_auth_app/project/templates/index.html @@ -1,4 +1,12 @@ -{% extends 'base.html' %} + + +{% extends "base.html" %} {% block content %} -{% endblock %} +

+ Flask Login Example +

+

+ Easy authentication and authorization in Flask. +

+{% endblock %} \ No newline at end of file diff --git a/flash_auth_app/project/templates/login.html b/flash_auth_app/project/templates/login.html index e69de29..56fc88c 100644 --- a/flash_auth_app/project/templates/login.html +++ b/flash_auth_app/project/templates/login.html @@ -0,0 +1,38 @@ + + +{% extends "base.html" %} + +{% block content %} +
+

Login

+
+ {% with messages = get_flashed_messages() %} + {% if messages %} +
+ {{ messages[0] }} +
+ {% endif %} + {% endwith %} +
+
+
+ +
+
+ +
+
+ +
+
+
+ +
+ +
+
+
+{% endblock %} \ No newline at end of file diff --git a/flash_auth_app/project/templates/profile.html b/flash_auth_app/project/templates/profile.html index e69de29..abc62c6 100644 --- a/flash_auth_app/project/templates/profile.html +++ b/flash_auth_app/project/templates/profile.html @@ -0,0 +1,9 @@ + + +{% extends "base.html" %} + +{% block content %} +

+ Welcome, {{ name }}! +

+{% endblock %} \ No newline at end of file diff --git a/flash_auth_app/project/templates/signup.html b/flash_auth_app/project/templates/signup.html index e69de29..b449fbe 100644 --- a/flash_auth_app/project/templates/signup.html +++ b/flash_auth_app/project/templates/signup.html @@ -0,0 +1,39 @@ + + +{% extends "base.html" %} + +{% block content %} +
+

Sign Up

+
+ {% with messages = get_flashed_messages() %} + {% if messages %} +
+ {{ messages[0] }}. Go to login page. +
+ {% endif %} + {% endwith %} +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+
+{% endblock %} \ No newline at end of file