109526520: Changed the code form fields to StringField

When the codes were IntegerFields and the code started with zero, the zero was trimmed, resulting in a failed match.
This commit is contained in:
Rebecca Law
2015-12-08 15:30:55 +00:00
parent bef2258803
commit 9923c14e73
3 changed files with 35 additions and 8 deletions

View File

@@ -1,13 +1,10 @@
from datetime import datetime
from flask import render_template, redirect, jsonify
from flask_login import login_user
from app.main import main
from app.main.forms import LoginForm
from app.main.dao import users_dao
from app.models import User
from app.main.encryption import checkpw
from app.main.forms import LoginForm
@main.route("/sign-in", methods=(['GET']))