Skip to content

BUG: Send User's One Time Password Through Email #323

Description

@gregoriusavip

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't working and needs to be fixedBack-EndBack-End Related Task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions