Change email option is now hidden if email auth is enabled

Added if statement that hides the option for users to change their email if email registration authentication is enabled (which it is by default).
This commit is contained in:
Julian Prieber 2022-03-31 21:33:58 +02:00
parent 56643ed068
commit 518d82125e

View File

@ -15,6 +15,7 @@
<button type="Change " class="mt-3 ml-3 btn btn-info">Change name</button>
</form>
@if(env('REGISTER_AUTH') != 'verified')
<br><br><form action="{{ route('editProfile') }}" method="post">
@csrf
<div class="form-group col-lg-8">
@ -23,6 +24,7 @@
</div>
<button type="Change " class="mt-3 ml-3 btn btn-info">Change email</button>
</form>
@endif
<br><br><form action="{{ route('editProfile') }}" method="post">
@csrf