改进 验证邮箱提醒

This commit is contained in:
iVampireSP.com 2023-02-28 19:36:44 +08:00
parent 1757f5f1ea
commit e005a5fef3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 6 additions and 11 deletions

View File

@ -1,6 +1,12 @@
@extends('layouts.app')
@section('content')
@if (!auth('web')->user()->hasVerifiedEmail())
<x-alert-warning>
请先 <a href="{{ route('verification.notice') }}">验证您的邮箱</a>
</x-alert-warning>
@endif
@if (session('token'))
<x-alert-warning>
<div>

View File

@ -151,20 +151,9 @@ class="d-none">
</nav>
<main class="py-4">
<div class="container">
@auth('web')
@if (!auth('web')->user()->hasVerifiedEmail())
<x-alert-warning>
请先 <a href="{{ route('verification.notice') }}">验证您的邮箱</a>
</x-alert-warning>
@endif
@endauth
</div>
<x-alert/>
<div class="container">
@yield('content')
</div>
</main>