Skip to content

Commit

Permalink
Merge pull request #11515 from camptocamp/backport/11512-to-master
Browse files Browse the repository at this point in the history
[Backport master] The used id is required
  • Loading branch information
sbrunner authored Nov 9, 2024
2 parents 1c5d723 + 5e825bf commit f320eb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoportal/c2cgeoportal_geoportal/lib/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class DynamicUser(NamedTuple):
User created dynamically.
"""

id: int
username: str
display_name: str
email: str
Expand Down Expand Up @@ -194,6 +195,7 @@ def get_user_from_remember(
models.DBSession.add(user)
else:
user = DynamicUser(
id=-1,
username=username,
display_name=display_name,
email=email,
Expand Down

0 comments on commit f320eb0

Please sign in to comment.