otp_required(view=None, redirect_field_name=u'next', login_url=None, if_configured=False)¶
login_required(), but requires the user to be verified. By default, this redirects users to :setting:`OTP_LOGIN_URL`.
Parameters: if_configured (bool) – If
True, an authenticated user with no confirmed OTP devices will be allowed. Default is
Sent when a user is verified against a OTP device. Provides the following arguments:
- The class sending the signal (
- The user that was verified.
- The OTP device that was used.
HttpRequestin which the user was verified.