Skip to content

Commit 49b1594

Browse files
committed
update url to root_url
1 parent fc208e6 commit 49b1594

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COGNITO_USER_POOL_ID=
66
SECRET_KEY=
77
COGNITO_ACCESS_ID=
88
COGNITO_ACCESS_KEY=
9-
URL=http://localhost:4040
9+
ROOT_URL=http://localhost:4040

api/openapi_server/controllers/auth_controller.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
COGNITO_ACCESS_ID = env.get('COGNITO_ACCESS_ID')
3030
COGNITO_ACCESS_KEY = env.get('COGNITO_ACCESS_KEY')
3131
SECRET_KEY=env.get('SECRET_KEY')
32-
URL=env.get('URL')
32+
ROOT_URL=env.get('ROOT_URL')
3333
cognito_client_url = 'https://homeuniteus.auth.us-east-1.amazoncognito.com'
3434

3535

@@ -155,7 +155,7 @@ def signin():
155155
if(response.get('ChallengeName') and response['ChallengeName'] == 'NEW_PASSWORD_REQUIRED'):
156156
userId = response['ChallengeParameters']['USER_ID_FOR_SRP']
157157
sessionId = response['Session']
158-
return redirect(f"{URL}/create-password?userId={userId}&sessionId={sessionId}")
158+
return redirect(f"{ROOT_URL}/create-password?userId={userId}&sessionId={sessionId}")
159159

160160
access_token = response['AuthenticationResult']['AccessToken']
161161
refresh_token = response['AuthenticationResult']['RefreshToken']
@@ -424,9 +424,9 @@ def confirm_signup():
424424
ConfirmationCode=code
425425
)
426426

427-
return redirect(f"{URL}/email-verification-success")
427+
return redirect(f"{ROOT_URL}/email-verification-success")
428428
except Exception as e:
429-
return redirect(f"{URL}/email-verification-error")
429+
return redirect(f"{ROOT_URL}/email-verification-error")
430430

431431
# What comes first invite or adding the user
432432
#Do I have an oauth token

0 commit comments

Comments
 (0)