You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-25 22:12:28 +02:00
merge artifact
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user