Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18595336
D13218.id31954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
635 B
Referenced Files
None
Subscribers
None
D13218.id31954.diff
View Options
diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -345,6 +345,12 @@
}
public function getCSRFToken() {
+ if ($this->isOmnipotent()) {
+ // We may end up here when called from the daemons. The omnipotent user
+ // has no meaningful CSRF token, so just return `null`.
+ return null;
+ }
+
if ($this->csrfSalt === null) {
$this->csrfSalt = Filesystem::readRandomCharacters(
self::CSRF_SALT_LENGTH);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sep 13 2025, 9:20 PM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8791869
Default Alt Text
D13218.id31954.diff (635 B)
Attached To
Mode
D13218: Don't try to generate a CSRF token for the omnipotent user
Attached
Detach File
Event Timeline
Log In to Comment