Rename gdprdelete action to gdpr-delete
This commit is contained in:
@ -19,6 +19,7 @@
|
|||||||
- Fix #242: Add POST filter for `admin/force-password-change` action (bscheshirwork)
|
- Fix #242: Add POST filter for `admin/force-password-change` action (bscheshirwork)
|
||||||
- Fix #252: Delete check for unexpected property `allowPasswordRecovery` for resend email by admin (bscheshirwork)
|
- Fix #252: Delete check for unexpected property `allowPasswordRecovery` for resend email by admin (bscheshirwork)
|
||||||
- Fix #254: Rename `GDPR` properties to `lowerCamelCase` style (bscheshirwork)
|
- Fix #254: Rename `GDPR` properties to `lowerCamelCase` style (bscheshirwork)
|
||||||
|
- Fix #258: Rename `GDPR` delete action to `lowerCamelCase`/`dash` style (bscheshirwork)
|
||||||
|
|
||||||
## 1.1.4 - February 19, 2018
|
## 1.1.4 - February 19, 2018
|
||||||
- Enh: Check enableEmailConfirmation on registration (faenir)
|
- Enh: Check enableEmailConfirmation on registration (faenir)
|
||||||
|
|||||||
@ -20,7 +20,7 @@ The following is the list of action provided by the module:
|
|||||||
| **/user/settings/delete** | Delete self account | | POST only
|
| **/user/settings/delete** | Delete self account | | POST only
|
||||||
| **/user/settings/disconnect** | Disconnect social account | | POST only
|
| **/user/settings/disconnect** | Disconnect social account | | POST only
|
||||||
| **/user/settings/export** | Download personal data in a comma separated values format
|
| **/user/settings/export** | Download personal data in a comma separated values format
|
||||||
| **/user/settings/gdprdelete** | Displays delete personal data page |
|
| **/user/settings/gdpr-delete** | Displays delete personal data page |
|
||||||
| **/user/settings/networks** | Displays social network accounts settings page
|
| **/user/settings/networks** | Displays social network accounts settings page
|
||||||
| **/user/settings/privacy** | Displays GDPR data page
|
| **/user/settings/privacy** | Displays GDPR data page
|
||||||
| **/user/settings/profile** | Displays profile settings form
|
| **/user/settings/profile** | Displays profile settings form
|
||||||
|
|||||||
@ -107,7 +107,7 @@ class SettingsController extends Controller
|
|||||||
'export',
|
'export',
|
||||||
'networks',
|
'networks',
|
||||||
'privacy',
|
'privacy',
|
||||||
'gdprdelete',
|
'gdpr-delete',
|
||||||
'disconnect',
|
'disconnect',
|
||||||
'delete',
|
'delete',
|
||||||
'two-factor',
|
'two-factor',
|
||||||
@ -167,7 +167,7 @@ class SettingsController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function actionGdprdelete()
|
public function actionGdprDelete()
|
||||||
{
|
{
|
||||||
if (!$this->module->enableGdprCompliance)
|
if (!$this->module->enableGdprCompliance)
|
||||||
throw new NotFoundHttpException();
|
throw new NotFoundHttpException();
|
||||||
@ -220,7 +220,7 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('gdprdelete', [
|
return $this->render('gdpr-delete', [
|
||||||
'model' => $form,
|
'model' => $form,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
use yii\widgets\ActiveForm;
|
use yii\widgets\ActiveForm;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
|
|
||||||
/* @var $model \Da\User\Form\GdprDeleteForm */
|
/* @var $model \Da\User\Form\GdprDeleteForm */
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ $this->title = Yii::t('usuario', 'Privacy settings');
|
|||||||
) ?>
|
) ?>
|
||||||
<?php else:
|
<?php else:
|
||||||
echo Html::a(Yii::t('usuario', 'Delete'),
|
echo Html::a(Yii::t('usuario', 'Delete'),
|
||||||
['/user/settings/gdprdelete'],
|
['/user/settings/gdpr-delete'],
|
||||||
[
|
[
|
||||||
'class' => 'btn btn-danger',
|
'class' => 'btn btn-danger',
|
||||||
'id' => 'gdpr-del-button',
|
'id' => 'gdpr-del-button',
|
||||||
|
|||||||
@ -141,7 +141,7 @@ class GdprCest
|
|||||||
$I->amOnRoute('/user/settings/privacy');
|
$I->amOnRoute('/user/settings/privacy');
|
||||||
$I->see('Export my data', 'h3');
|
$I->see('Export my data', 'h3');
|
||||||
$I->see('Delete my account', 'h3');
|
$I->see('Delete my account', 'h3');
|
||||||
$I->amOnRoute('/user/settings/gdprdelete');
|
$I->amOnRoute('/user/settings/gdpr-delete');
|
||||||
$I->fillField('#gdprdeleteform-password','wrongpassword');
|
$I->fillField('#gdprdeleteform-password','wrongpassword');
|
||||||
$I->click('Delete');
|
$I->click('Delete');
|
||||||
$I->see('Invalid password');
|
$I->see('Invalid password');
|
||||||
|
|||||||
Reference in New Issue
Block a user