client frontend tested

This commit is contained in:
2025-05-21 16:50:46 +03:00
parent fdf9d2edb8
commit 82d16ed3c9
53 changed files with 2669 additions and 486 deletions

View File

@@ -402,14 +402,7 @@ class LoginHandler:
def authentication_check_token_valid(cls, domain, access_token: str) -> bool:
redis_handler = RedisHandlers()
if auth_token := redis_handler.get_object_from_redis(access_token=access_token):
if auth_token.is_employee:
if domain not in auth_token.domain_list:
raise ValueError("EYS_00112")
return True
elif auth_token.is_occupant:
if domain not in auth_token.domain_list:
raise ValueError("EYS_00113")
return True
return True
return False