Table of Contents
This section describes the logic flows for the plugin events.
-
Check if this is a form, if not return
-
Check if this is the com_users, profile edit form. If not return.
-
Check whether administration back end or debugging and if so return.
-
If guest user return
-
Get session variable ‘password_force’
-
If variable enabled set form field variables for passwords to mandatory.
-
Else set field variables to optional.
-
If the options to modify the displayed form fields such as username, name and email are requested, change settings for these fields in the form.
-
If the variable to force an email change is set then empty out any existing email field values and ensure that the email field is displayed.
-
If the optional informative field is requested create the form field and add it to the form.
-
If the password generator is enabled then modify the edit profile form so that it contains an additional button which when clicked will cause the popup dialog window to appear.