Log OTK code for development testing
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -203,11 +203,21 @@ def request_otk(session: Session, email: str, password: str):
|
||||
|
||||
session.commit()
|
||||
|
||||
logger.info(
|
||||
"Saved OTK for account %s with expiration at %s", account.id, expires_at
|
||||
)
|
||||
if settings.environment == "prod":
|
||||
logger.info(
|
||||
"Saved OTK for account %s with expiration at %s",
|
||||
account.id,
|
||||
expires_at,
|
||||
)
|
||||
else:
|
||||
logger.info(
|
||||
"OTK code for account %s: %s, expires at %s",
|
||||
account.id,
|
||||
otk_code,
|
||||
expires_at,
|
||||
)
|
||||
|
||||
return {"status": "ok"}
|
||||
return {"status": "ok", "account_id": str(account.id)}
|
||||
|
||||
|
||||
def login(session: Session, response: Response, account_id: uuid.UUID, email_code: str):
|
||||
|
||||
Reference in New Issue
Block a user