Deleting User Profiles
The DeleteUser controller allows authorized users to delete their profiles. To confirm the action, the user must enter his / her password.
Expands the Form.
In the templates, the model fields for the record to be deleted are available.
Parameters
Property | Description |
---|---|
model | Class for working with users. Possible values are the class name. The default value is \ modUsers |
modelPath | The path to the class file for working with users. Possible values are the relative path to the file. The default value is assets / lib / MODxAPI / modUsers.php |
redirectTo | Redirects the user to the specified page after saving the profile. The possible values are the id of the landing page. The default value is empty. |
exitTo | Redirects an unauthorized user to the specified page. Possible values are the id of the landing page or array. The default value is empty. |
skipTpl | A message template for an unauthorized user. Possible values are the name of the template specified by the rules for setting templates in DocLister. The default value is a record from the deleteUser lexicon with the key |
successTpl | Template of the message about successful deletion of the profile. If not specified, a message is generated that the form is saved successfully. Possible values are the name of the template specified by the rules for setting templates in DocLister. The default value is empty. |
Suggest an edit to this page.