swap_user.otp.senders
EmailOTPSender
¶
Bases: AbstractOTPSender
Sender that implements sending OTP via default send_mail
function. To make this work you need to set following settings:
- EMAIL_HOST
- EMAIL_HOST_PASSWORD
- EMAIL_HOST_USER
- EMAIL_PORT
- EMAIL_USE_TLS
- EMAIL_USE_SSL
Source code in swap_user/otp/senders.py
send(receiver, otp, **kwargs)
¶
Sends OTP via email.
Source code in swap_user/otp/senders.py
StdOutOTPSender
¶
Bases: AbstractOTPSender
Simple sender that just writes all messages to STDOUT.