Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit ab56afe

Browse files
Merge branch 'develop' into feature/forgot-password-link
2 parents 091f46f + 23e5396 commit ab56afe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

themes/material/core/loginuserpass.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$siteKey = $this->data['recaptcha.siteKey'] ?? null;
44
$username = $this->data['username'] ?? null;
55
$forgotPasswordUrl = $this->data['forgotPasswordUrl'] ?? null;
6+
$csrfToken = $this->data['csrfToken'] ?? null;
67

78
$errorCode = $this->data['errorcode'] ?? null;
89
$errorMessageKey = $this->data['errorparams'][1] ?? '{material:login:error_wronguserpass}';
@@ -55,6 +56,7 @@ function onRecaptchaLoad() {
5556

5657
<input type="hidden" name="AuthState"
5758
value="<?= htmlspecialchars($this->data['stateparams']['AuthState']) ?>" />
59+
<input type="hidden" name="csrf-token" value="<?= htmlentities($csrfToken); ?>" />
5860

5961
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
6062
<label for="username" class="mdl-textfield__label">

0 commit comments

Comments
 (0)