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
+ We've sent a link to your registered Email Address Please + follow the + link inside to continue. +
+ +We have sent a new Email Verification Link which is linked with this Account. Please Check Spam Box if you are unable to get it.
+ ++ Didn't receive an email? + +
+ +Or
+ + + @else