merge artifact

master
Florent Daigniere 3 years ago
parent ef637f51b7
commit b49554bec1

@ -54,7 +54,7 @@ def handle_authentication(headers):
status = True
# All tokens are 32 characters hex lowercase
if len(password) == 32:
if not status and len(password) == 32:
for token in user.tokens:
if (token.check_password(password) and
(not token.ip or token.ip == ip)):

@ -1,6 +1,7 @@
from mailu import models
from mailu.ui import ui, forms, access
from flask import current_app as app
import flask
import flask_login

Loading…
Cancel
Save