myet_appl_password

Description

Fires after online application has been successfully created. This hook is only available if you have the myeduTrac Extended module installed.

Usage

<?php $app->hook->add_action( 'myet_appl_password', 'function_name' ); ?>

Parameters

$pass: (string) (required) Applicant’s plaintext password.

Example

$app = \Liten\Liten::getInstance();

function email_person_password($pass) {
    
    $email = _etsis_email();
    $person = get_person_by('uname', $_POST['uname']);
    $message = sprintf( 'Your new password is %s.', $pass );
    
    $email->etsis_mail($person->email, 'New Password', $message);
    
}
$app->hook->add_action('myet_appl_password', 'email_person_password', 10, 1);

Change Log

Since 6.2.0

Source File

myet_appl_password hook is located in app/routers/myet.router.php.