django_webapps_fullstack.account.forms¶
This module provides comprehensive user authentication and account management forms for the dingx web application. It handles the complete user lifecycle from registration to password recovery, integrating with the Odoo ERP system via XMLRPC for centralized user data management.
Business Context:
The account app serves as the gateway for user interaction with the dingx platform, which provides a logistics management system for tracking and managing physical objects across different locations (storage, home, disposal, transfer). Users must authenticate through this system to access their personal dashboard and manage their belongings.
Key Business Processes:
Authentication:
LoginForm: Secure login validation against Odoo user databaseSession management for authenticated users
Credential retrieval for authorized access
User Registration & Activation:
RegisterForm: New users register with name, email, login, and passwordSystem validates uniqueness against Odoo database
Activation token sent via email to verify user identity
User_ActivateForm: Users must activate account before first login via email token
Password Management:
Password_RecoveryForm: Password recovery via email-based reset tokensResetForm: Validate password reset tokenPassword_RenewForm: Set new password after resetPassword_ChangeForm: Change password functionality for logged-in usersAll password operations synchronized with Odoo
Integration:
All forms communicate with the Odoo ERP backend via Twisted XMLRPC server, ensuring centralized user data management across the entire dingx ecosystem.
Classes
|
Create a form for the "login" template and create the functions of the form. |
|
Create a form for the "password_change" template and create the corresponding functions of the form |
|
Create a form for the "recovery" template and create the corresponding functions of the form |
|
Create a form for the "password_renew" template and create the corresponding functions of the form |
|
Create a form for the "register" template and create the corresponding functions of the form. |
|
Create a form and create the corresponding functions of the form |
|
Create a form and create the corresponding functions of the form |
- class django_webapps_fullstack.account.forms.LoginForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form for the “login” template and create the functions of the form.
- base_fields = {}¶
- clean()[source]¶
Check the credentials it gets and return a user object that matches those credentials if the credentials are valid. If they’re not valid, it return None.
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class django_webapps_fullstack.account.forms.Password_ChangeForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form for the “password_change” template and create the corresponding functions of the form
- base_fields = {}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class django_webapps_fullstack.account.forms.Password_RecoveryForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form for the “recovery” template and create the corresponding functions of the form
- base_fields = {}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class django_webapps_fullstack.account.forms.Password_RenewForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form for the “password_renew” template and create the corresponding functions of the form
- base_fields = {}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class django_webapps_fullstack.account.forms.RegisterForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form for the “register” template and create the corresponding functions of the form.
- base_fields = {}¶
- create_activatetoken(login)[source]¶
Create the activate token for the user, which is used for the activation of the user account.
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.
- class django_webapps_fullstack.account.forms.ResetForm(*args, **kwargs)[source]¶
Bases:
FormCreate a form and create the corresponding functions of the form
- base_fields = {}¶
- declared_fields = {}¶
- property media¶
Return all media required to render the widgets on this form.