Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions | Variables
lib.php File Reference

Login library file of login/password related Moodle functions. More...

Functions

 core_login_extend_change_password_form ($mform, $user)
 Plugins can extend forms. More...
 
 core_login_extend_forgot_password_form ($mform)
 Inject form elements into forgot_password_form. More...
 
 core_login_extend_set_password_form ($mform, $user)
 Inject form elements into set_password_form. More...
 
 core_login_extend_signup_form ($mform)
 Inject form elements into signup_form. More...
 
 core_login_generate_password_reset ($user)
 Create a new record in the database to track a new password set request for user. More...
 
 core_login_get_return_url ()
 Determine where a user should be redirected after they have been logged in. More...
 
 core_login_post_change_password_requests ($data)
 Plugins can perform post submission actions. More...
 
 core_login_post_forgot_password_requests ($data)
 Post forgot_password_form submission actions. More...
 
 core_login_post_set_password_requests ($data, $user)
 Post set_password_form submission actions. More...
 
 core_login_post_signup_requests ($data)
 Post signup_form submission actions. More...
 
 core_login_pre_signup_requests ()
 Plugins can create pre sign up requests.
 
 core_login_process_password_reset ($username, $email)
 Process the password reset for the given user (via username or email). More...
 
 core_login_process_password_reset_request ()
 Processes a user's request to set a new password in the event they forgot the old one. More...
 
 core_login_process_password_set ($token)
 This function processes a user's submitted token to validate the request to set a new password. More...
 
 core_login_validate_extend_change_password_form ($data, $user)
 Plugins can add additional validation to forms. More...
 
 core_login_validate_extend_forgot_password_form ($data)
 Inject validation into forgot_password_form. More...
 
 core_login_validate_extend_set_password_form ($data, $user)
 Inject validation into set_password_form. More...
 
 core_login_validate_extend_signup_form ($data)
 Inject validation into signup_form. More...
 
 core_login_validate_forgot_password_data ($data)
 Validates the forgot password form data. More...
 

Variables

const PWRESET_STATUS_ALREADYSENT 4
 
const PWRESET_STATUS_NOEMAILSENT 1
 
const PWRESET_STATUS_OTHEREMAILSENT 3
 
const PWRESET_STATUS_TOKENSENT 2
 

Detailed Description

Login library file of login/password related Moodle functions.

@subpackage lib

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later