Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-barraza committed Sep 6, 2023
1 parent ddebe68 commit c8864d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions auth-api/src/auth_api/resources/v1/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ def get_entity_authentication(business_identifier):
# It's used by the business dashboard for magic link.
if ((entity := EntityService.find_by_business_identifier(business_identifier, skip_auth=True)) and
(contact := entity.get_contact())):
has_valid_pass_code = (entity.pass_code_claimed == 'f' and entity.pass_code is not None) or \
entity.corp_type in ['SP', 'GP']
return {
'contactEmail': mask_email(contact.email),
'hasValidPassCode': has_valid_pass_code
}, http_status.HTTP_200_OK
has_valid_pass_code = (entity.pass_code_claimed == 'f' and entity.pass_code is not None) or \
entity.corp_type in ['SP', 'GP']
return {
'contactEmail': mask_email(contact.email),
'hasValidPassCode': has_valid_pass_code
}, http_status.HTTP_200_OK
return jsonify({'message': f'Authentication for {business_identifier} was not found.'}), \
http_status.HTTP_404_NOT_FOUND

Expand Down

0 comments on commit c8864d2

Please sign in to comment.