Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Multiple plugin authentication Support library. More...
Classes | |
class | auth_plugin_base |
Abstract authentication plugin. More... | |
Functions | |
display_auth_lock_options ($settings, $auth, $userfields, $helptext, $mapremotefields, $updateremotefields, $customfields=array()) | |
Helper function used to print locking for auth plugins on admin pages. More... | |
login_attempt_failed ($user) | |
To be called after failed user login. More... | |
login_attempt_valid ($user) | |
To be called after valid user login. More... | |
login_is_lockedout ($user) | |
Verify if user is locked out. More... | |
login_lock_account ($user) | |
Lockout user and send notification email. More... | |
login_unlock_account ($user) | |
Unlock user account and reset timers. More... | |
signup_captcha_enabled () | |
Returns whether or not the captcha element is enabled, and the admin settings fulfil its requirements. More... | |
signup_get_user_confirmation_authplugin () | |
Check if user confirmation is enabled on this site and return the auth plugin handling registration if enabled. More... | |
signup_is_enabled () | |
Check if sign-up is enabled in the site. More... | |
signup_setup_new_user ($user) | |
Add the missing fields to a user that is going to be created. More... | |
signup_validate_data ($data, $files) | |
Validates the standard sign-up data (except recaptcha that is validated by the form element). More... | |
Variables | |
const | AUTH_CONFIRM_ALREADY 2 |
const | AUTH_CONFIRM_ERROR 3 |
const | AUTH_CONFIRM_FAIL 0 |
Authentication - error codes for user confirm. | |
const | AUTH_CONFIRM_OK 1 |
const | AUTH_DENIED 2 |
Returned when the login was denied (a reason for AUTH_FAIL). | |
const | AUTH_ERROR 4 |
Returned when some error occurred (a reason for AUTH_FAIL). | |
const | AUTH_FAIL 1 |
Returned when the login was unsuccessful. | |
const | AUTH_LOGIN_FAILED 3 |
Can not login, most probably password did not match. | |
const | AUTH_LOGIN_LOCKOUT 4 |
Can not login because user is locked out. | |
const | AUTH_LOGIN_NOUSER 1 |
Can not login because user does not exist. | |
const | AUTH_LOGIN_OK 0 |
Login attempt successful. | |
const | AUTH_LOGIN_SUSPENDED 2 |
Can not login because user is suspended. | |
const | AUTH_LOGIN_UNAUTHORISED 5 |
Can not login becauser user is not authorised. | |
const | AUTH_OK 0 |
Returned when the login was successful. | |
const | AUTH_REMOVEUSER_FULLDELETE 2 |
const | AUTH_REMOVEUSER_KEEP 0 |
const | AUTH_REMOVEUSER_SUSPEND 1 |
Multiple plugin authentication Support library.
2006-08-28 File created, AUTH return values defined.
@subpackage auth