feat(discord): finish discord login/logout sequence
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
@@ -271,7 +271,7 @@
|
||||
|
||||
<p>{{ __('Alternatively, you can unlink your Discord account and set a password which you can use to sign in. Please note that any roles and/or privileges you may have been given as a result of this integration may be automatically removed until you link your Discord account again.') }}</p>
|
||||
|
||||
<form method="POST" action="" id="setPassword">
|
||||
<form method="POST" action="{{ route('addPassword') }}" id="setPassword">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
@@ -285,13 +285,15 @@
|
||||
|
||||
<div class="col">
|
||||
<label for="unlinkConfirmNewPassword">{{ __('Confirm new password') }}</label>
|
||||
<input type="password" name="newpass_confirm" if="unlinkConfirmNewPassword" class="form-control">
|
||||
<input type="password" name="newpass_confirmation" if="unlinkConfirmNewPassword" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-warning btn-md mt-4 mb-2"><i class="fas fa-check"></i> {{ __('Set password and unlink account') }}</button>
|
||||
<button type="submit" class="btn btn-warning btn-md mt-4"><i class="fas fa-check"></i> {{ __('Set password and unlink account') }}</button>
|
||||
<p class="text-sm"><i>{{ __('You will be logged out afterwards.') }}</i></p>
|
||||
</form>
|
||||
@else
|
||||
|
||||
<h5 class="card-title">{{__('Change Password')}}</h5>
|
||||
<p class="card-text">{{__('Change your password here. This will log you out from all existing sessions for your security.')}}</p>
|
||||
|
||||
|
Reference in New Issue
Block a user