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.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

Auth e-mail external API

Copyright: 2016 Juan Leyva <juan@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 373 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: auth_email_external  - X-Ref

Auth e-mail external functions

check_signup_enabled()   X-Ref
Check if registration is enabled in this site.


get_signup_settings_parameters()   X-Ref
Describes the parameters for get_signup_settings.

return: external_function_parameters

get_signup_settings()   X-Ref
Get the signup required settings and profile fields.

return: array settings and possible warnings

get_signup_settings_returns()   X-Ref
Describes the get_signup_settings return value.

return: external_single_structure

signup_user_parameters()   X-Ref
Describes the parameters for signup_user.

return: external_function_parameters

signup_user($username, $password, $firstname, $lastname, $email, $city = '', $country = '',$recaptchachallengehash = '', $recaptcharesponse = '', $customprofilefields = array()   X-Ref
Get the signup required settings and profile fields.

param: string $username               username
param: string $password               plain text password
param: string $firstname              the first name(s) of the user
param: string $lastname               the family name of the user
param: string $email                  a valid and unique email address
param: string $city                   home city of the user
param: string $country                home country code
param: string $recaptchachallengehash recaptcha challenge hash
param: string $recaptcharesponse      recaptcha response
param: array  $customprofilefields    user custom fields (also known as user profile fields)
param: string $redirect               Site url to redirect the user after confirmation
return: array settings and possible warnings

signup_user_returns()   X-Ref
Describes the signup_user return value.

return: external_single_structure