mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 05:33:11 -04:00
Small comments.
This commit is contained in:
@@ -11,7 +11,6 @@ from app.main.views import send_sms_code
|
|||||||
|
|
||||||
@main.route('/sign-in', methods=(['GET', 'POST']))
|
@main.route('/sign-in', methods=(['GET', 'POST']))
|
||||||
def sign_in():
|
def sign_in():
|
||||||
try:
|
|
||||||
form = LoginForm()
|
form = LoginForm()
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
user = users_dao.get_user_by_email(form.email_address.data)
|
user = users_dao.get_user_by_email(form.email_address.data)
|
||||||
@@ -26,6 +25,3 @@ def sign_in():
|
|||||||
form.password.errors.append('Username or password is incorrect')
|
form.password.errors.append('Username or password is incorrect')
|
||||||
|
|
||||||
return render_template('views/signin.html', form=form)
|
return render_template('views/signin.html', form=form)
|
||||||
except:
|
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ from flask_login import login_required
|
|||||||
|
|
||||||
from app.main import main
|
from app.main import main
|
||||||
|
|
||||||
|
# TODO move this to the templates directory
|
||||||
message_templates = [
|
message_templates = [
|
||||||
{
|
{
|
||||||
'name': 'Reminder',
|
'name': 'Reminder',
|
||||||
|
|||||||
Reference in New Issue
Block a user