Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

If an expired cached token is initialized, expiraion time was ignored

  • Loading branch information...
commit a5e33e7ab0384d5633a181e8bb80b27293944b95 1 parent 14bda65
@k7d k7d authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  classes/PhAuthenticationToken.m
View
3  classes/PhAuthenticationToken.m
@@ -20,8 +20,7 @@ - (id) initWithToken: (NSString*) token secondsToExpiry: (NSTimeInterval) second
if ((self == [super init]))
{
self.authenticationToken = token;
- if (seconds > 0)
- self.expiry = [NSDate dateWithTimeIntervalSinceNow: seconds];
+ self.expiry = [NSDate dateWithTimeIntervalSinceNow: seconds];
self.permissions = perms;
}
Please sign in to comment.
Something went wrong with that request. Please try again.