mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-56974 auth_email: Incorrect param type for redirect in sign_up WS
This commit is contained in:
parent
cd4a6b8b0b
commit
d0da94cdf4
@ -203,7 +203,8 @@ class auth_email_external extends external_api {
|
||||
)
|
||||
), 'User custom fields (also known as user profile fields)', VALUE_DEFAULT, array()
|
||||
),
|
||||
'redirect' => new external_value(PARAM_URL, 'Redirect the user to this url after confirmation.', VALUE_DEFAULT, ''),
|
||||
'redirect' => new external_value(PARAM_LOCALURL, 'Redirect the user to this site url after confirmation.',
|
||||
VALUE_DEFAULT, ''),
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -221,7 +222,7 @@ class auth_email_external extends external_api {
|
||||
* @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 Url to redirect the user after confirmation
|
||||
* @param string $redirect Site url to redirect the user after confirmation
|
||||
* @return array settings and possible warnings
|
||||
* @since Moodle 3.2
|
||||
* @throws moodle_exception
|
||||
|
Loading…
x
Reference in New Issue
Block a user