deux.notifications¶
-
deux.notifications.NOT_SMS_DEVICE_CODE= 21401¶ Error code from Twilio to indicate at
InvalidPhoneNumberError
-
deux.notifications.send_mfa_code_text_message(mfa_instance, mfa_code)[source]¶ Sends the MFA Code text message to the user.
Parameters: - mfa_instance –
MultiFactorAuthinstance to use. - mfa_code – MFA code in the form of a string.
Raises: - deux.exceptions.InvalidPhoneNumberError – To tell system that this MFA object’s phone number if not a valid number to receive SMS’s.
- deux.exceptions.TwilioMessageError – To tell system that Twilio failed to send message.
- mfa_instance –