Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F76833
D7466.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
682 B
Referenced Files
None
Subscribers
None
D7466.diff
View Options
diff --git a/src/applications/auth/provider/PhabricatorAuthProviderOAuth.php b/src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
--- a/src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
+++ b/src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
@@ -282,9 +282,9 @@
// Don't return a token with fewer than this many seconds remaining until
// it expires.
$shortest_token = 60;
-
if ($access_token) {
- if ($access_expires > (time() + $shortest_token)) {
+ if ($access_expires === null ||
+ $access_expires > (time() + $shortest_token)) {
return $access_token;
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/wl/yt/37kqghks7qsy42x3
Default Alt Text
D7466.diff (682 B)
Attached To
Mode
D7466: Allow null for token expiration date
Attached
Detach File
Event Timeline
Log In to Comment