MDL-68178 auth: CSRF protection for the resend confirmation email form
Credit to Chandra Kishor.
This commit is contained in:
+2
-1
@@ -198,7 +198,8 @@ if ($frm and isset($frm->username)) { // Login WITH
|
||||
[
|
||||
'username' => $frm->username,
|
||||
'password' => $frm->password,
|
||||
'resendconfirmemail' => true
|
||||
'resendconfirmemail' => true,
|
||||
'logintoken' => \core\session\manager::get_login_token()
|
||||
]
|
||||
);
|
||||
echo $OUTPUT->single_button($resendconfirmurl, get_string('emailconfirmationresend'));
|
||||
|
||||
Reference in New Issue
Block a user