Skip to content

Commit

Permalink
Add get_register_relative_url (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean authored Aug 14, 2024
1 parent 4202a2d commit 4942263
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/calypsso/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ def get_reset_password_relative_url(reset_token: str) -> str:
return f"calypsso/reset-password/?{urllib.parse.urlencode(exclude_none(params))}"


def get_register_relative_url(external: bool) -> str:
"""
Return CalypSSO register page relative url: `calypsso/register?external=...`
"""
params = {"external": external}
return f"calypsso/register/?{urllib.parse.urlencode(exclude_none(params))}"


def get_activate_relative_url(activation_token: str, external: bool) -> str:
"""
Return CalypSSO account activation page relative url: `calypsso/activate?activation_code=...`
Expand Down

0 comments on commit 4942263

Please sign in to comment.