Changeset 922 for trunk/Modules/User/UserPage.php
- Timestamp:
- Feb 28, 2022, 8:53:22 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/UserPage.php
r912 r922 180 180 $Form = new Form($this->System->FormManager); 181 181 $Form->SetClass('PasswordRecovery'); 182 $Form->OnSubmit = '?Action=PasswordRecovery2';183 $Output .= $Form->ShowEditForm();184 } else185 if ($Action == 'PasswordRecovery2')186 {187 $Form = new Form($this->System->FormManager);188 $Form->SetClass('PasswordRecovery');189 $Form->LoadValuesFromForm();190 $Result = $User->PasswordRecoveryRequest($Form->Values['Name'], $Form->Values['Email']);191 $Output .= $this->SystemMessage('Obnova hesla', $Result);192 if ($Result <> USER_PASSWORD_RECOVERY_SUCCESS)193 {182 if ($Form->HasAllPostVariables()) 183 { 184 $Form->LoadValuesFromForm(); 185 $Result = $User->PasswordRecoveryRequest($Form->Values['Name'], $Form->Values['Email']); 186 $Output .= $this->SystemMessage('Obnova hesla', $Result); 187 if ($Result <> USER_PASSWORD_RECOVERY_SUCCESS) 188 { 189 $Output .= $Form->ShowEditForm(); 190 } 191 } else 192 { 193 $Form->OnSubmit = '?Action=PasswordRecovery'; 194 194 $Output .= $Form->ShowEditForm(); 195 195 }
Note:
See TracChangeset
for help on using the changeset viewer.