added failed login for register form
This commit is contained in:
@@ -35,6 +35,7 @@ function materio_user_form_user_login_form_alter(&$form, FormStateInterface $for
|
||||
);
|
||||
|
||||
$form['message'] = array(
|
||||
'#weight' => -10,
|
||||
'#markup' => '
|
||||
<span class="login-message" v-if="loginMessage">
|
||||
{{ loginMessage }}
|
||||
@@ -45,8 +46,6 @@ function materio_user_form_user_login_form_alter(&$form, FormStateInterface $for
|
||||
}
|
||||
|
||||
function materio_user_form_user_modal_form_alter(&$form, FormStateInterface $form_state, $form_id) {
|
||||
// Drupal::logger('materio_user')->notice(print_r($form['mail'], true));
|
||||
// ksm($form);
|
||||
$form['account']['mail']['#attributes'] = array(
|
||||
"v-model" => "mail",
|
||||
"@keyup.enter" => "register",
|
||||
@@ -69,6 +68,14 @@ function materio_user_form_user_modal_form_alter(&$form, FormStateInterface $for
|
||||
// ":class" => "can_register"
|
||||
);
|
||||
|
||||
$form['account']['message'] = array(
|
||||
'#weight' => -10,
|
||||
'#markup' => '
|
||||
<span class="register-message" v-if="registerMessage">
|
||||
{{ registerMessage }}
|
||||
</span>
|
||||
'
|
||||
);
|
||||
}
|
||||
|
||||
function _materio_user_process_password_confirm($element){
|
||||
|
Reference in New Issue
Block a user