diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..7c145a8 Binary files /dev/null and b/.DS_Store differ diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index 2fa8c7c..dedafa5 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -38,8 +38,7 @@ public function index(Request $request) } else if ($request->getToken) { return $this->created($token); } else { - // 403 - return $this->error('Direct access is not allowed.'); + return view('index'); } } else { // save callback url and referer url to session diff --git a/public/robots.txt b/public/robots.txt index eb05362..1f53798 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: +Disallow: / diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php new file mode 100644 index 0000000..cdedeab --- /dev/null +++ b/resources/views/index.blade.php @@ -0,0 +1,54 @@ + + + + + + + + + + + +

在这里,你可以获取新的 Token 来对接其他应用程序。

+ + {{-- display all errors --}} + @if ($errors->any()) +
+ +
+ @endif + + @if (session('success')) +

{{ session('success') }}

+ @endif + + @if (session('token')) +

{{ session('token') }}

+ {{-- 前往 --}} + @endif + + @guest + 登录 + @else +
+ @csrf + + +
+ +
+

如果你需要撤销对所有应用程序的授权,你可以在这里吊销所有 Token

+
+ @csrf + @method('delete') + +
+

*如果您的 Token 被泄漏,您应该立即吊销所有 Token

+ @endguest + + + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php deleted file mode 100644 index de23392..0000000 --- a/resources/views/welcome.blade.php +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - Laravel - - - - - - - - - - -
- @if (Route::has('login')) - - @endif - -
-
- - - - - -
- -
-
-
- - -
-
- Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. -
-
-
- -
-
- - -
- -
-
- Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. -
-
-
- -
-
- - -
- -
-
- Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. -
-
-
- -
-
- -
Vibrant Ecosystem
-
- -
-
- Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. -
-
-
-
-
- -
-
-
- - - - - - Shop - - - - - - - - Sponsor - -
-
- -
- Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) -
-
-
-
- - diff --git a/storage/.DS_Store b/storage/.DS_Store index c99d0f1..266d13d 100644 Binary files a/storage/.DS_Store and b/storage/.DS_Store differ