Skip to content

Commit

Permalink
fix: hardcode front_endpoint (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: abingcbc <[email protected]>
  • Loading branch information
Abingcbc authored Mar 20, 2022
1 parent 9dcad2b commit ef17ce6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/casdoor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ def __init__(
client_secret: str,
certificate: str,
org_name: str,
front_endpoint: str = None
):
self.endpoint = endpoint
self.front_endpoint = endpoint.replace(":8000", ":7001")
if front_endpoint:
self.front_endpoint = front_endpoint
else:
self.front_endpoint = endpoint.replace(":8000", ":7001")
self.client_id = client_id
self.client_secret = client_secret
self.certificate = certificate
Expand Down

0 comments on commit ef17ce6

Please sign in to comment.