Skip to content

Commit

Permalink
Merge pull request #455 from dzadikdev/bug/fixes-admin-ecommerce
Browse files Browse the repository at this point in the history
Fixed Data Validation and Last Name Error in Ecomm
  • Loading branch information
dzadikdev authored Aug 9, 2021
2 parents 6a701ed + ad462e8 commit 2bac131
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion _developer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ def developer_api():
okta_admin = OktaAdmin(session[SESSION_INSTANCE_SETTINGS_KEY])
user_info = get_userinfo()
user_info2 = okta_admin.get_user(user_info["sub"])
production = user_info2["profile"][get_udp_ns_fieldname("production")]

try:
production = user_info2["profile"][get_udp_ns_fieldname("production")]
except Exception:
logger.debug(user_info2)
production = "false"
return render_template(
"developer/api.html",
user_info=user_info,
Expand Down
2 changes: 1 addition & 1 deletion _ecommerce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def ecommerce_create_guest_account():
"email": "{id}@guestuseraccount.com".format(id=guest_user_id),
"login": "{id}@guestuseraccount.com".format(id=guest_user_id),
"firstName": "Guest",
"lirstName": "User",
"lastName": "User"
}
}

Expand Down

0 comments on commit 2bac131

Please sign in to comment.