chore: clean-up

This commit is contained in:
Vlad Stan
2026-02-02 12:37:48 +02:00
parent efa6398c51
commit c7398f6314
-2
View File
@@ -87,8 +87,6 @@ async def login(data: LoginUsernamePassword) -> JSONResponse:
if not account or not account.verify_password(data.password):
raise HTTPException(HTTPStatus.UNAUTHORIZED, "Invalid credentials.")
if not account.activated:
raise HTTPException(HTTPStatus.FORBIDDEN, "Account is not activated.")
return _auth_success_response(account.username, account.id, account.email)