function _bakery_pass_validate in Bakery Single Sign-On System 8.2
Same name and namespace in other branches
- 6.2 bakery.module \_bakery_pass_validate()
- 7.2 bakery.module \_bakery_pass_validate()
Validate handler for the password reset login.
1 string reference to '_bakery_pass_validate'
- bakery_form_user_pass_alter in ./
bakery.module - Implements hook_form_FORM_ID_alter() for 'user_pass'.
File
- ./
bakery.module, line 241 - For implementing different hooks for bakery SSO functionality.
Code
function _bakery_pass_validate($form, FormStateInterface &$form_state) {
// Attempt to copy account from master.
\Drupal::service('bakery.bakery_service')
->requestAccount(trim($form_state
->getValue('name')), TRUE);
}