Skip to content

Commit 619d3fe

Browse files
committed
Fix autodeploy time checking.
1 parent a307ff4 commit 619d3fe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1313
* `[beta.2]` — Fixes password reset form throwing a MethodNotAllowed error when accessed.
1414
* `[beta.2]` — Fixes invalid password bug when attempting to change account email address.
1515
* `[beta.2]` — New attempt at fixing the issues when rendering files in the browser file editor on certain browsers.
16+
* `[beta.2]` — Fixes broken auto-deploy time checking causing no tokens to work.
1617

1718
### Changed
1819
* 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`)

app/Http/Controllers/Remote/RemoteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getConfiguration(Request $request, $token)
129129
}
130130

131131
// Check if token is expired
132-
if ($model->created_at->lt(Carbon::now())) {
132+
if ($model->created_at->addMinutes(5)->lt(Carbon::now())) {
133133
$model->delete();
134134

135135
return response()->json(['error' => 'token_expired'], 403);

0 commit comments

Comments
 (0)