From 5a56d340633f742a931419130b8d30567909a7c3 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 12 Feb 2020 14:58:04 +0100 Subject: [PATCH] MDL-67641 auth: Fix shortname type in get_signup_settings WS --- auth/email/classes/external.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/email/classes/external.php b/auth/email/classes/external.php index 34e95404ea8..782f0336c4e 100644 --- a/auth/email/classes/external.php +++ b/auth/email/classes/external.php @@ -146,7 +146,7 @@ class auth_email_external extends external_api { new external_single_structure( array( 'id' => new external_value(PARAM_INT, 'Profile field id', VALUE_OPTIONAL), - 'shortname' => new external_value(PARAM_ALPHANUM, 'Password policy', VALUE_OPTIONAL), + 'shortname' => new external_value(PARAM_ALPHANUMEXT, 'Profile field shortname', VALUE_OPTIONAL), 'name' => new external_value(PARAM_TEXT, 'Profield field name', VALUE_OPTIONAL), 'datatype' => new external_value(PARAM_ALPHANUMEXT, 'Profield field datatype', VALUE_OPTIONAL), 'description' => new external_value(PARAM_RAW, 'Profield field description', VALUE_OPTIONAL),