Search moodle.org's
Developer Documentation


/login/ -> lib.php (summary)

Login library file of login/password related Moodle functions.

Copyright: Catalyst IT
Copyright: Peter Bulmer
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 313 lines (15 kb)
Included or required: 2 times
Referenced: 1 time
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

core_login_process_password_reset_request()   X-Ref
Processes a user's request to set a new password in the event they forgot the old one.
If no user identifier has been supplied, it displays a form where they can submit their identifier.
Where they have supplied identifier, the function will check their status, and send email as appropriate.


core_login_process_password_set($token)   X-Ref
This function processes a user's submitted token to validate the request to set a new password.
If the user's token is validated, they are prompted to set a new password.

return: void
param: string $token the one-use identifier which should verify the password reset request as being valid.

core_login_generate_password_reset($user)   X-Ref
No description

core_login_get_return_url()   X-Ref
No description

Search This Site: