function rpt_user_form_submit in Registration Password Token 8
Submit handler for 'user_form' form.
@see: rpt_form_user_form_alter()
1 string reference to 'rpt_user_form_submit'
- rpt_form_user_form_alter in ./
rpt.module - Implements hook_form_FORM_ID_alter().
File
- ./
rpt.module, line 77 - Registration Password Token module.
Code
function rpt_user_form_submit($form, FormStateInterface $form_state) {
$pass = $form_state
->getValue('pass');
if ($pass) {
$account = $form_state
->getFormObject()
->getEntity();
$account->password = $pass;
}
}