diff --git a/app.db b/app.db index 0a6fc1f..8bcd793 100644 Binary files a/app.db and b/app.db differ diff --git a/app/models.py b/app/models.py index ece233e..9e3e9ee 100644 --- a/app/models.py +++ b/app/models.py @@ -2,7 +2,8 @@ from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin -from app import db, login +from app import db +from app import login class User(UserMixin, db.Model): id = db.Column(db.Integer, primary_key = True) diff --git a/app/templates/register.html b/app/templates/register.html index 8803d38..e64bd93 100644 --- a/app/templates/register.html +++ b/app/templates/register.html @@ -26,9 +26,9 @@
- {{ form.password2.label }}
- {{ form.password2(size=32) }}
- {% for error in form.password2.errors %}
+ {{ form.password_repeat.label }}
+ {{ form.password_repeat(size=32) }}
+ {% for error in form.password_repeat.errors %}
[{{ error }}]
{% endfor %}