Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: login_lib_test  - X-Ref

Login lib testcase.

test_core_login_process_password_reset_one_time_without_username_protection()   X-Ref
No description

test_core_login_process_password_reset_two_consecutive_times_without_username_protection()   X-Ref
No description

test_core_login_process_password_reset_three_consecutive_times_without_username_protection()   X-Ref
No description

test_core_login_process_password_reset_one_time_with_username_protection()   X-Ref
No description

test_core_login_process_password_reset_with_preexisting_expired_request_without_username_protection()   X-Ref
No description

test_core_login_process_password_reset_disabled_auth()   X-Ref
No description

test_core_login_process_password_reset_auth_not_supporting_email_reset()   X-Ref
No description

test_core_login_process_password_reset_missing_parameters()   X-Ref
No description

test_core_login_process_password_reset_invalid_username_with_username_protection()   X-Ref
No description

test_core_login_process_password_reset_invalid_username_without_username_protection()   X-Ref
No description

test_core_login_process_password_reset_invalid_email_without_username_protection()   X-Ref
No description

forgot_password_data_provider()   X-Ref
Data provider for \core_login_lib_testcase::test_core_login_validate_forgot_password_data().


test_core_login_validate_forgot_password_data($data, $errors = [], $options = [])   X-Ref
Test for core_login_validate_forgot_password_data().

param: array $data Key-value array containing username and email data.
param: array $errors Key-value array containing error messages for the username and email fields.
param: array $options Options for $CFG->protectusernames, $CFG->allowaccountssameemail and $user->confirmed.

test_core_login_process_password_reset_email_sensitivity()   X-Ref
Test searching for the user record by matching the provided email address when resetting password.

Email addresses should be handled as case-insensitive but accent sensitive.