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 Sep 24, 2024
1 parent e388aa4 commit 12218e8
Showing 1 changed file with 1 addition and 1 deletion.
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 12218e8

Please sign in to comment.