From d0da94cdf4913c81379ee947e07c2531d39236ca Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Sat, 19 Nov 2016 18:21:56 +0000 Subject: [PATCH] MDL-56974 auth_email: Incorrect param type for redirect in sign_up WS --- auth/email/classes/external.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/email/classes/external.php b/auth/email/classes/external.php index c7bfde7ba47..1f4f7cf0000 100644 --- a/auth/email/classes/external.php +++ b/auth/email/classes/external.php @@ -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