1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00

merge artifact

This commit is contained in:
Florent Daigniere
2021-02-07 18:08:58 +01:00
parent ef637f51b7
commit b49554bec1
2 changed files with 2 additions and 1 deletions

View File

@@ -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)):

View File

@@ -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