diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7188cf0..2d771ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'npm' - name: Compile Assets run: | diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.php index c5c87c1..53288a0 100644 --- a/app/Providers/FortifyServiceProvider.php +++ b/app/Providers/FortifyServiceProvider.php @@ -33,7 +33,7 @@ public function boot(): void Fortify::resetUserPasswordsUsing(ResetUserPassword::class); RateLimiter::for('login', function (Request $request) { - $email = (string)$request->email; + $email = (string)$request->username; return Limit::perMinute(5)->by($email . $request->ip()); }); diff --git a/app/Providers/NukeServiceProvider.php b/app/Providers/NukeServiceProvider.php index dd61d2c..bf0b704 100644 --- a/app/Providers/NukeServiceProvider.php +++ b/app/Providers/NukeServiceProvider.php @@ -37,7 +37,7 @@ public function register() public function boot() { RateLimiter::for('login', function (Request $request) { - $email = (string)$request->email; + $email = (string)$request->username; return Limit::perMinute(5)->by($email . $request->ip()); }); @@ -70,8 +70,8 @@ public function boot() return session()->put(['attempt-failed' => Lang::get('passwords.attempt'), 'end_time' => time() + 300]); } - $user = User::where('email', $request->email) - ->orWhere('username', $request->email) + $user = User::where('email', $request->username) + ->orWhere('username', $request->username) ->first(); if ($user && Hash::check($request->password, $user->password)) { diff --git a/resources/views/auth/auth-login.blade.php b/resources/views/auth/auth-login.blade.php index a425e9d..1592269 100644 --- a/resources/views/auth/auth-login.blade.php +++ b/resources/views/auth/auth-login.blade.php @@ -93,7 +93,7 @@ class="app-brand-text demo text-body fw-bold ms-1">Codebumble Inc. @csrf
-
diff --git a/resources/views/auth/auth-verify-email.blade.php b/resources/views/auth/auth-verify-email.blade.php index 7caacd2..573fa8b 100644 --- a/resources/views/auth/auth-verify-email.blade.php +++ b/resources/views/auth/auth-verify-email.blade.php @@ -47,9 +47,41 @@ class="app-brand-text demo text-body fw-bold ms-1">Codebumble Inc. @if (session('status') == 'verification-link-sent') -
- A new email verification link has been emailed to you! + +

Verify your email ✉️

+

+ We've sent a link to your registered Email Address Please + follow the + link inside to continue. +

+ + + +

+ Didn't receive an email? + +

+ @csrf + +
+ +

Or

+ +
+ @csrf + +
+

@else

Verify your email ✉️