Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Class: core_login_lib_testcase  - 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.