For testing purposes, user's one time password is currently being output to the console. Once a service to send an email is implemented, OTP(One Time Password) should be sent to the user's email.
|
# sending email need authentication |
|
# send_mail( |
|
# "User OTP", |
|
# "the otp: {}".format(pyotp.TOTP(otp_base32, interval=90).now), |
|
# os.environ.get("EMAIL_NAME"), |
|
# [user.email], |
|
# fail_silently=False, |
|
# ) |
|
print(totp.now()) # for debug. remove after sending email works |
For testing purposes, user's one time password is currently being output to the console. Once a service to send an email is implemented, OTP(One Time Password) should be sent to the user's email.
Site/mesh/accounts/services.py
Lines 38 to 46 in 71d3499