Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 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: 380 lines (18 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