app.forms

WTForms form definitions for the Mail List Shield application.

This module defines Flask-WTF form classes for user authentication, profile management, and API key creation.

Classes

LoginForm

Form for user login.

RegisterForm

Form for new user registration.

EmailConfirmationForm

Form for email confirmation code entry.

ResetPassword

Form for requesting a password reset.

SetNewPassword

Form for setting a new password after reset.

ProfileDetailsForm

Form for updating user profile details.

TwoFactorAuthenticationForm

Form for two-factor authentication code entry.

CreateAPIKeyForm

Form for creating a new API key.

Module Contents

class app.forms.LoginForm[source]

Bases: flask_wtf.FlaskForm

Form for user login.

email[source]

Email address field with validation.

password[source]

Password field with validation.

email[source]
password[source]
class app.forms.RegisterForm[source]

Bases: flask_wtf.FlaskForm

Form for new user registration.

email[source]

Email address field with validation.

password[source]

Password field with validation.

firstName[source]

First name field (required).

lastName[source]

Last name field (optional).

newsletter[source]

Newsletter subscription checkbox.

email[source]
password[source]
firstName[source]
lastName[source]
newsletter[source]
class app.forms.EmailConfirmationForm[source]

Bases: flask_wtf.FlaskForm

Form for email confirmation code entry.

Contains 6 individual fields for each digit of the confirmation code.

code0-code5

Individual digit fields for the 6-digit confirmation code.

code0[source]
code1[source]
code2[source]
code3[source]
code4[source]
code5[source]
class app.forms.ResetPassword[source]

Bases: flask_wtf.FlaskForm

Form for requesting a password reset.

email[source]

Email address field for the account to reset.

email[source]
class app.forms.SetNewPassword[source]

Bases: flask_wtf.FlaskForm

Form for setting a new password after reset.

password[source]

New password field with validation.

password[source]
class app.forms.ProfileDetailsForm[source]

Bases: flask_wtf.FlaskForm

Form for updating user profile details.

firstName[source]

First name field (required).

lastName[source]

Last name field (optional).

newsletter[source]

Newsletter subscription checkbox.

firstName[source]
lastName[source]
newsletter[source]
class app.forms.TwoFactorAuthenticationForm[source]

Bases: flask_wtf.FlaskForm

Form for two-factor authentication code entry.

Contains 6 individual fields for each digit of the TOTP code.

code0-code5

Individual digit fields for the 6-digit TOTP code.

code0[source]
code1[source]
code2[source]
code3[source]
code4[source]
code5[source]
class app.forms.CreateAPIKeyForm[source]

Bases: flask_wtf.FlaskForm

Form for creating a new API key.

label[source]

Optional label for identifying the API key.

expires_at[source]

Optional expiration date for the key.

submit[source]

Submit button.

label[source]
expires_at[source]
submit[source]