mirror of
https://github.com/valitydev/url-shortener.git
synced 2024-11-06 01:55:19 +00:00
MSPF-563 Disable expiration check (#30)
This commit is contained in:
parent
ca0920e8c6
commit
c0b9715e2f
@ -317,10 +317,14 @@ check_expiration(_, Exp = 0) ->
|
||||
Exp;
|
||||
check_expiration(_, Exp) when is_integer(Exp) ->
|
||||
case genlib_time:unow() of
|
||||
Now when Exp > Now ->
|
||||
Exp;
|
||||
_ ->
|
||||
throw({invalid_token, expired})
|
||||
% Now when Exp > Now ->
|
||||
% Exp;
|
||||
% Expiration check is disabled.
|
||||
% See MSPF-563 for details
|
||||
_Now ->
|
||||
Exp
|
||||
% _ ->
|
||||
% throw({invalid_token, expired})
|
||||
end;
|
||||
check_expiration(C, undefined) ->
|
||||
throw({invalid_token, {missing, C}});
|
||||
|
Loading…
Reference in New Issue
Block a user