MDL-70668 auth: Fix secret validation during user confirmation

Co-authored-by: Michael Hawkins <[email protected]>
This commit is contained in:
Sander Wind
2021-03-02 16:41:28 +01:00
committed by Jenkins
co-authored by Michael Hawkins
parent 420983c00d
commit acfb9efa25
4 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -700,7 +700,7 @@ class core_user {
$fields['lastlogin'] = array('type' => PARAM_INT, 'null' => NULL_NOT_ALLOWED);
$fields['currentlogin'] = array('type' => PARAM_INT, 'null' => NULL_NOT_ALLOWED);
$fields['lastip'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED);
$fields['secret'] = array('type' => PARAM_RAW, 'null' => NULL_NOT_ALLOWED);
$fields['secret'] = array('type' => PARAM_ALPHANUM, 'null' => NULL_NOT_ALLOWED);
$fields['picture'] = array('type' => PARAM_INT, 'null' => NULL_NOT_ALLOWED);
$fields['url'] = array('type' => PARAM_URL, 'null' => NULL_NOT_ALLOWED);
$fields['description'] = array('type' => PARAM_RAW, 'null' => NULL_ALLOWED);