mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
fix: change config
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 6s
All checks were successful
Laravel-Oracle-Deploy / redeploy (push) Successful in 6s
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -30,3 +30,4 @@ Homestead.json
|
|||||||
.env.production
|
.env.production
|
||||||
.phpactor.json
|
.phpactor.json
|
||||||
auth.json
|
auth.json
|
||||||
|
logs/laravel.log
|
||||||
|
|||||||
@@ -46,6 +46,6 @@ class GoogleAuthController extends Controller
|
|||||||
$token = $user->createToken('auth_token')->plainTextToken;
|
$token = $user->createToken('auth_token')->plainTextToken;
|
||||||
|
|
||||||
// 把 token 帶回前端
|
// 把 token 帶回前端
|
||||||
return redirect(env('APP_URL') . "/#/auth/callback?token={$token}&name=" . urlencode($user->name));
|
return redirect(config('app.url') . "/#/auth/callback?token={$token}&name=" . urlencode($user->name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user