mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-16 02:46:44 +02:00
Also check the SMTP port for webmail/token
This commit is contained in:
parent
f26fa8da84
commit
d76773b1df
@ -32,7 +32,7 @@ def check_credentials(user, password, ip, protocol=None, auth_port=None):
|
||||
return False
|
||||
is_ok = False
|
||||
# webmails
|
||||
if len(password) == 64 and auth_port == '10143':
|
||||
if len(password) == 64 and auth_port in ['10143', '10025']:
|
||||
if user.verify_temp_token(password):
|
||||
is_ok = True
|
||||
# All tokens are 32 characters hex lowercase
|
||||
|
Loading…
Reference in New Issue
Block a user