mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
update delete account config structure
#time 0.5h
This commit is contained in:
@@ -286,3 +286,7 @@ workers:
|
|||||||
user: guest
|
user: guest
|
||||||
password: guest
|
password: guest
|
||||||
vhost: /
|
vhost: /
|
||||||
|
|
||||||
|
user_account:
|
||||||
|
deleting_policies:
|
||||||
|
email_confirmation: true
|
||||||
|
@@ -334,7 +334,7 @@ class AccountController extends Controller
|
|||||||
{
|
{
|
||||||
$user = $this->getAuthenticatedUser();
|
$user = $this->getAuthenticatedUser();
|
||||||
|
|
||||||
if($this->app['conf']->get(['main', 'delete-account-require-email-confirmation'])) {
|
if($this->app['conf']->get(['user_account', 'deleting_policies', 'email_confirmation'])) {
|
||||||
|
|
||||||
// send email confirmation
|
// send email confirmation
|
||||||
|
|
||||||
|
@@ -241,3 +241,7 @@ video-editor:
|
|||||||
- 1
|
- 1
|
||||||
- '1.5'
|
- '1.5'
|
||||||
- 3
|
- 3
|
||||||
|
|
||||||
|
user_account:
|
||||||
|
deleting_policies:
|
||||||
|
email_confirmation: true
|
||||||
|
@@ -279,7 +279,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<label style="text-align: left;" class="form_label checkbox" for="delete_account_aggree">
|
<label style="text-align: left;" class="form_label checkbox" for="delete_account_aggree">
|
||||||
{% if app['conf'].get(['main', 'delete-account-require-email-confirmation']) %}
|
{% if app['conf'].get(['user_account', 'deleting_policies', 'email_confirmation']) %}
|
||||||
{{ "phraseanet::account: I am agree to delete my account, need confirmation on mail" | trans }}
|
{{ "phraseanet::account: I am agree to delete my account, need confirmation on mail" | trans }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ "phraseanet::account: I am agree to delete my account" | trans }}
|
{{ "phraseanet::account: I am agree to delete my account" | trans }}
|
||||||
|
Reference in New Issue
Block a user