mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Use a class constant instead of a hardcoded string
Test Plan: Submitted a form - saw nothing out of ordinary. Reviewers: #blessed_reviewers Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D13167
This commit is contained in:
parent
006a877996
commit
5deaeec668
1 changed files with 2 additions and 1 deletions
|
@ -355,7 +355,8 @@ final class PhabricatorUser
|
||||||
// discussion in T3684.
|
// discussion in T3684.
|
||||||
$token = $this->getRawCSRFToken();
|
$token = $this->getRawCSRFToken();
|
||||||
$hash = PhabricatorHash::digest($token, $salt);
|
$hash = PhabricatorHash::digest($token, $salt);
|
||||||
return 'B@'.$salt.substr($hash, 0, self::CSRF_TOKEN_LENGTH);
|
return self::CSRF_BREACH_PREFIX.$salt.substr(
|
||||||
|
$hash, 0, self::CSRF_TOKEN_LENGTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validateCSRFToken($token) {
|
public function validateCSRFToken($token) {
|
||||||
|
|
Loading…
Reference in a new issue