Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leximpact-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur dotations aux communes
leximpact-server
Commits
b3f14cf0
Commit
b3f14cf0
authored
Sep 30, 2022
by
Benoît Courty
Browse files
Options
Downloads
Patches
Plain Diff
Update server/services/auth_services.py
parent
a95d0071
No related branches found
No related tags found
1 merge request
!79
Update server/services/auth_services.py
Pipeline
#6566
passed
Sep 30, 2022
Stage: init
Stage: check
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/services/auth_services.py
+1
-1
1 addition, 1 deletion
server/services/auth_services.py
with
1 addition
and
1 deletion
server/services/auth_services.py
+
1
−
1
View file @
b3f14cf0
...
...
@@ -70,7 +70,7 @@ def login_user(session, email: str) -> Optional[JWT]: # Optional[User]:
domain
=
email
.
split
(
"
@
"
)[
1
]
# We accept login if email is in a collab domain (clb-an.fr or clb-dep.fr)
# Or if it appears in our DB
if
domain
not
in
(
"
clb-an.fr
"
,
"
clb-dep.fr
"
):
if
domain
not
in
(
"
clb-an.fr
"
,
"
clb-dep.fr
"
,
"
assemblee-nationale.fr
"
):
user
=
find_user
(
session
,
email
)
if
not
user
:
return
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment