Skip to content

Commit 4c879d7

Browse files
committed
linting changes
1 parent 3b9d30e commit 4c879d7

File tree

8 files changed

+10
-90
lines changed

8 files changed

+10
-90
lines changed

app/Http/Controllers/Auth/EmailVerificationNotificationController.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/Http/Controllers/Auth/EmailVerificationPromptController.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/Http/Controllers/Auth/VerifyEmailController.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace App\Models;
44

5-
use Illuminate\Contracts\Auth\MustVerifyEmail;
5+
// use Illuminate\Contracts\Auth\MustVerifyEmail;
66
use Illuminate\Database\Eloquent\Factories\HasFactory;
77
use Illuminate\Foundation\Auth\User as Authenticatable;
88
use Illuminate\Notifications\Notifiable;
99
use Laravel\Fortify\TwoFactorAuthenticatable;
1010

11-
class User extends Authenticatable implements MustVerifyEmail
11+
class User extends Authenticatable
1212
{
1313
/** @use HasFactory<\Database\Factories\UserFactory> */
1414
use HasFactory, Notifiable, TwoFactorAuthenticatable;

app/Providers/FortifyServiceProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ public function boot(): void
3030
'canResetPassword' => Route::has('password.request'),
3131
'status' => $request->session()->get('status'),
3232
]));
33+
34+
Fortify::verifyEmailView(fn (Request $request) => Inertia::render('auth/VerifyEmail', [
35+
'status' => $request->session()->get('status'),
36+
]));
37+
3338
Fortify::twoFactorChallengeView(fn () => Inertia::render('auth/TwoFactorChallenge'));
39+
3440
Fortify::confirmPasswordView(fn () => Inertia::render('auth/ConfirmPassword'));
3541

3642
RateLimiter::for('two-factor', function (Request $request) {

config/fortify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
'features' => [
147147
// Features::registration(),
148148
// Features::resetPasswords(),
149-
Features::emailVerification(),
149+
Features::emailVerification(),
150150
// Features::updateProfileInformation(),
151151
// Features::updatePasswords(),
152152
Features::twoFactorAuthentication([

resources/js/pages/auth/VerifyEmail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import TextLink from '@/components/TextLink.vue';
33
import { Button } from '@/components/ui/button';
44
import AuthLayout from '@/layouts/AuthLayout.vue';
55
import { logout } from '@/routes';
6+
import { send } from '@/routes/verification';
67
import { Form, Head } from '@inertiajs/vue3';
78
import { LoaderCircle } from 'lucide-vue-next';
8-
import {send} from '@/routes/verification';
99
1010
defineProps<{
1111
status?: string;

routes/auth.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?php
22

3-
use App\Http\Controllers\Auth\EmailVerificationPromptController;
43
use App\Http\Controllers\Auth\NewPasswordController;
54
use App\Http\Controllers\Auth\PasswordResetLinkController;
65
use App\Http\Controllers\Auth\RegisteredUserController;
7-
use App\Http\Controllers\Auth\VerifyEmailController;
8-
use Illuminate\Http\Request;
96
use Illuminate\Support\Facades\Route;
107

118
Route::middleware('guest')->group(function () {
@@ -27,16 +24,3 @@
2724
Route::post('reset-password', [NewPasswordController::class, 'store'])
2825
->name('password.store');
2926
});
30-
31-
Route::middleware('auth')->group(function () {
32-
Route::get('email/verify', EmailVerificationPromptController::class)
33-
->name('verification.notice');
34-
35-
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
36-
->middleware(['signed', 'throttle:6,1'])
37-
->name('verification.verify');
38-
39-
Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
40-
->middleware('throttle:6,1')
41-
->name('verification.send');
42-
});

0 commit comments

Comments
 (0)