Allow changing email, username and password
This commit is contained in:
@@ -7,17 +7,33 @@
|
||||
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">
|
||||
{{ __('Ensure your account is using a long, random password to stay secure.') }}
|
||||
</p>
|
||||
|
||||
@if ($user->discord_id && is_null($user->password))
|
||||
<div class="p-2 rounded-lg bg-rose-600/80 mt-4">
|
||||
<p class="p-2 text-sm dark:text-gray-200 text-white">
|
||||
{{ __('You currently don\'t have a password set, as you use Discord authentication. You can set a password to be able to login with email & password.') }}
|
||||
</p>
|
||||
</div>
|
||||
@elseif ($user->discord_id && !is_null($user->password))
|
||||
<div class="p-2 rounded-lg bg-green-600/80 mt-4">
|
||||
<p class="p-2 text-sm dark:text-gray-200 text-white">
|
||||
{{ __('Both Discord and email login are enabled.') }}
|
||||
</p>
|
||||
</div>
|
||||
@endif
|
||||
</header>
|
||||
|
||||
<form method="post" action="{{ route('password.update') }}" class="mt-6 space-y-6">
|
||||
@csrf
|
||||
@method('put')
|
||||
|
||||
@if (!(is_null($user->password) && $user->discord_id))
|
||||
<div>
|
||||
<x-input-label for="update_password_current_password" :value="__('Current Password')" />
|
||||
<x-text-input id="update_password_current_password" name="current_password" type="password" class="mt-1 block w-full" autocomplete="current-password" />
|
||||
<x-input-error :messages="$errors->updatePassword->get('current_password')" class="mt-2" />
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<x-input-label for="update_password_password" :value="__('New Password')" />
|
||||
|
||||
Reference in New Issue
Block a user