email
¶
Multi-factor authenticator that sends TOTPs per email.
The user is required to have an email
attribute.
User secret is dynamically generated each time new TOTP is created.
Source code: email
Package Contents¶
- class email.Config¶
Bases:
gws.base.auth.mfa.Config
- templates: list[gws.ext.config.template] | None¶
Email templates.
- class email.Object¶
Bases:
gws.base.auth.mfa.Object
- templates: list[gws.Template]¶
- configure()¶
- generate_and_send(mfa: gws.AuthMultiFactorTransaction)¶
- render_template(subject, args, mime=None)¶
- start(user)¶
- verify(mfa, payload)¶