Fix autodeploy time checking.
This commit is contained in:
parent
a307ff4696
commit
619d3fe480
|
@ -13,6 +13,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||||
* `[beta.2]` — Fixes password reset form throwing a MethodNotAllowed error when accessed.
|
* `[beta.2]` — Fixes password reset form throwing a MethodNotAllowed error when accessed.
|
||||||
* `[beta.2]` — Fixes invalid password bug when attempting to change account email address.
|
* `[beta.2]` — Fixes invalid password bug when attempting to change account email address.
|
||||||
* `[beta.2]` — New attempt at fixing the issues when rendering files in the browser file editor on certain browsers.
|
* `[beta.2]` — New attempt at fixing the issues when rendering files in the browser file editor on certain browsers.
|
||||||
|
* `[beta.2]` — Fixes broken auto-deploy time checking causing no tokens to work.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Deleting a server safely now continues even if the daemon reports a `HTTP/404` missing server error (requires `Daemon@0.4.0-beta.2.1`)
|
* Deleting a server safely now continues even if the daemon reports a `HTTP/404` missing server error (requires `Daemon@0.4.0-beta.2.1`)
|
||||||
|
|
|
@ -129,7 +129,7 @@ class RemoteController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if token is expired
|
// Check if token is expired
|
||||||
if ($model->created_at->lt(Carbon::now())) {
|
if ($model->created_at->addMinutes(5)->lt(Carbon::now())) {
|
||||||
$model->delete();
|
$model->delete();
|
||||||
|
|
||||||
return response()->json(['error' => 'token_expired'], 403);
|
return response()->json(['error' => 'token_expired'], 403);
|
||||||
|
|
Loading…
Reference in New Issue