Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/AccountSettingsForm.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
152 '#default_value' => $config->get('register'), | 152 '#default_value' => $config->get('register'), |
153 '#options' => [ | 153 '#options' => [ |
154 USER_REGISTER_ADMINISTRATORS_ONLY => $this->t('Administrators only'), | 154 USER_REGISTER_ADMINISTRATORS_ONLY => $this->t('Administrators only'), |
155 USER_REGISTER_VISITORS => $this->t('Visitors'), | 155 USER_REGISTER_VISITORS => $this->t('Visitors'), |
156 USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL => $this->t('Visitors, but administrator approval is required'), | 156 USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL => $this->t('Visitors, but administrator approval is required'), |
157 ] | 157 ], |
158 ]; | 158 ]; |
159 $form['registration_cancellation']['user_email_verification'] = [ | 159 $form['registration_cancellation']['user_email_verification'] = [ |
160 '#type' => 'checkbox', | 160 '#type' => 'checkbox', |
161 '#title' => $this->t('Require email verification when a visitor creates an account'), | 161 '#title' => $this->t('Require email verification when a visitor creates an account'), |
162 '#default_value' => $config->get('verify_mail'), | 162 '#default_value' => $config->get('verify_mail'), |
163 '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.') | 163 '#description' => $this->t('New users will be required to validate their email address prior to logging into the site, and will be assigned a system-generated password. With this setting disabled, users will be logged in immediately upon registering, and may select their own passwords during registration.'), |
164 ]; | 164 ]; |
165 $form['registration_cancellation']['user_password_strength'] = [ | 165 $form['registration_cancellation']['user_password_strength'] = [ |
166 '#type' => 'checkbox', | 166 '#type' => 'checkbox', |
167 '#title' => $this->t('Enable password strength indicator'), | 167 '#title' => $this->t('Enable password strength indicator'), |
168 '#default_value' => $config->get('password_strength'), | 168 '#default_value' => $config->get('password_strength'), |