Skip to content

Commit

Permalink
[FIX] fastapi_auth_partner: Fix directory acl read issue
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Oct 8, 2024
1 parent e388aa4 commit 052e15f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastapi_auth_partner/routers/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import auth
from .auth import auth_router
2 changes: 1 addition & 1 deletion fastapi_auth_partner/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _login(self, directory, data):
.log_in(directory, data.login.lower(), data.password)
)
if partner_auth:
if directory.force_verified_email and not partner_auth.mail_verified:
if directory.sudo().force_verified_email and not partner_auth.mail_verified:
raise AccessError(

Check warning on line 176 in fastapi_auth_partner/routers/auth.py

View check run for this annotation

Codecov / codecov/patch

fastapi_auth_partner/routers/auth.py#L176

Added line #L176 was not covered by tests
_(
"Email address not validated. Validate your email address by "
Expand Down

0 comments on commit 052e15f

Please sign in to comment.