Skip to content

Commit

Permalink
register page added
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKayAce committed Jul 12, 2019
1 parent a84ecbf commit 47cc4a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file modified app.db
Binary file not shown.
3 changes: 2 additions & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions app/templates/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ <h1>Register</h1>
{% endfor %}
</p>
<p>
{{ form.password2.label }}<br>
{{ form.password2(size=32) }}
{% for error in form.password2.errors %}
{{ form.password_repeat.label }}<br>
{{ form.password_repeat(size=32) }}
{% for error in form.password_repeat.errors %}
<span style="color: red">[{{ error }}]</span>
{% endfor %}
</p>
Expand Down

0 comments on commit 47cc4a7

Please sign in to comment.