Skip to content

Commit

Permalink
bank info update
Browse files Browse the repository at this point in the history
  • Loading branch information
shamith09 committed Nov 5, 2024
1 parent 6d00101 commit ace3c49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ def login_signup_add_PIC():
return {"error": "Incorrect email"}, 401

if form["method"] == "login":
access_token = create_access_token(identity=str(user["_id"]))
res = {"access_token": access_token}
return res
# login success
if not user["registered"]:
return {}, 404
Expand Down
4 changes: 2 additions & 2 deletions server/token.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"token": "ya29.a0AcM612zkwOuqgbc8XMVC2QRQxGYplIpaPeEtI5_3YPwKjo5G5Ic5eDt-kZZHaCsIGUrD8fLBmaSigbCpVveYp4QGgDaERmzasQu74h9qnY0_LV7MmpnUvwMEQ-lT1OdkGKI-N5ZYDpmVEN_PS-6yl9tMi-mXCjcXkq-cClPjqCMaCgYKAT4SARISFQHGX2MiI-7eEWbX4ojTI24Ifxwe6w0178",
"token": "ya29.a0AeDClZBytsK94gRfW9hjO-1fA0S05wGAxust5ke9yNEl-xdHVx2YpenW1847cqooqCZMT6Vnyn5lJ0PDJ3x5jTqsmNTpXbB6CMpkQbyy_SqIItTAmtPxDfMpdxsWExslHSBsRZRxqq-MdlKap-fP-pkXwxhDppdQiATPJURF7LEaCgYKAawSARISFQHGX2MijZWR-kLifVBUdIN5UpmMaw0178",
"refresh_token": "1//06EwKtLXaoqBsCgYIARAAGAYSNwF-L9Irggll9sz3DSiOwEJjliMNK0gDfK_waEP3hDDY0anT9iYpvId0y5PiwenblVcXP94vMFM",
"token_uri": "https://oauth2.googleapis.com/token",
"client_id": "968100881152-garl97325rjhdanp1igoa1m1ttl298uh.apps.googleusercontent.com",
"client_secret": "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",
"scopes": ["https://www.googleapis.com/auth/spreadsheets"],
"expiry": "2024-10-15T20:02:31.516411Z"
"expiry": "2024-11-05T01:16:27.399416Z"
}
4 changes: 2 additions & 2 deletions src/app/pages/ProfilePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export function ProfilePage(props: Props) {

const bankSubmit = async () => {
const bodyData = { bankName };
if (accountNumber !== user?.bank.accountNumber) {
if (accountNumber !== user?.bank?.accountNumber) {
bodyData['accountNumber'] = accountNumber;
}
if (routingNumber !== user?.bank.routingNumber) {
if (routingNumber !== user?.bank?.routingNumber) {
bodyData['routingNumber'] = routingNumber;
}

Expand Down

0 comments on commit ace3c49

Please sign in to comment.