app.models.user.User.tf_send_security_token
- User.tf_send_security_token(method: str, **kwargs: Any) Optional[str]
Generate and send the security code for two-factor.
- Parameters
method – The method in which the code will be sent
kwargs – Opaque parameters that are subject to change at any time
- Returns
None if successful, error message if not.
This is a wrapper around
tf_send_security_token()
that can be overridden to manage any errors.New in version 3.4.0.