@@ -24,7 +24,7 @@
|
||||
|
||||
<span><i class="fa fa-ban"></i> <b>{{__('This account has been suspended :suspensionTypeValue', ['suspensionTypeValue' => ($suspensionInfo['isPermanent']) ? __('permanently.') : __('until :date.', ['date' => $suspensionInfo['bannedUntil']])]) }}</b></span>
|
||||
|
||||
<p>{{__('This user has been suspended by the admins. Admins suspend accounts for a variety of reasons, including spam.')}}</p>
|
||||
<p>{{__('This user has been suspended.')}}</p>
|
||||
|
||||
<p>
|
||||
<i class="fas fa-chevron-right"></i> <b>{{$suspensionInfo['reason']}}</b>
|
||||
@@ -34,256 +34,6 @@
|
||||
|
||||
@endif
|
||||
|
||||
@if (Auth::user()->hasRole('admin'))
|
||||
|
||||
<x-modal id="banAccountModal" modal-label="banAccount" modal-title="{{__('Please confirm')}}" include-close-button="true">
|
||||
|
||||
<p>{{__("Please confirm that you want to suspend this account. You'll need to add a reason and expiration date to confirm this.")}}</p>
|
||||
|
||||
<form id="banAccountForm" name="banAccount" method="POST" action="{{route('banUser', ['user' => $profile->user->id])}}">
|
||||
@csrf
|
||||
|
||||
@if($demoActive)
|
||||
<div class="alert alert-danger">
|
||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col">
|
||||
<label for="reason">{{__('Public note')}}</label>
|
||||
<input type="text" name="reason" id="reason" class="form-control" placeholder="{{__('e.g. Spamming')}}">
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<label for="duration">{{ __('Duration') }}</label>
|
||||
<input type="text" name="duration" id="duration" class="form-control" placeholder="{{ __('in days') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<input type="hidden" name="suspensionType" value="off">
|
||||
|
||||
<label for="suspensionType">{{ __('Suspension type') }}</label><br>
|
||||
<input type="checkbox" id="suspensionType" name="suspensionType" checked data-toggle="toggle" data-on="Temporary" data-off="Permanent" data-onstyle="success" data-offstyle="danger" data-width="130" data-height="40">
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('Temporary suspensions will be automatically lifted. The suspension note is visible to all users. Suspended users will not be able to login or register.') }}</p>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
<button id="banAccountButton" type="button" class="btn btn-danger" {{ ($demoActive) ? 'disabled' : '' }} ><i class="fa fa-gavel"></i> {{__('Confirm')}}</button>
|
||||
</x-slot>
|
||||
|
||||
</x-modal>
|
||||
|
||||
@if (!Auth::user()->is($profile->user) && $profile->user->isStaffMember())
|
||||
<x-modal id="terminateUser" modal-label="terminateUser" modal-title="{{__('Please Confirm')}}" include-close-button="true">
|
||||
|
||||
@if($demoActive)
|
||||
<div class="alert alert-danger">
|
||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<p><i class="fa fa-exclamation-triangle"></i> <b>{{__('You are about to terminate a recruited staff member')}}</b></p>
|
||||
<p>
|
||||
{{__('Terminating a staff member will remove their privileges on the application management site and connected integrations configured for the vacancy they applied for.')}}
|
||||
</p>
|
||||
<p>
|
||||
<b>{{__('THIS PROCESS IS IRREVERSIBLE AND IMMEDIATE')}}</b>
|
||||
</p>
|
||||
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
|
||||
<form method="POST" action="{{route('terminateStaffMember', ['user' => $profile->user->id])}}" id="terminateUserForm">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<button type="submit" class="btn btn-warning" {{ ($demoActive) ? 'disabled' : '' }}><i class="fas fa-exclamation-circle"></i> {{__('Confirm')}}</button>
|
||||
|
||||
</form>
|
||||
|
||||
</x-slot>
|
||||
|
||||
</x-modal>
|
||||
@endif
|
||||
|
||||
<x-modal id="deleteAccount" modal-label="deleteAccount" modal-title="{{__('messages.reusable.confirm')}}" include-close-button="true">
|
||||
|
||||
@if($demoActive)
|
||||
<div class="alert alert-danger">
|
||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<p><i class="fa fa-exclamation-triangle"></i><b> {{__('WARNING: This is a potentially destructive action!')}}</b></p>
|
||||
|
||||
<p>{{__("Deleting a user's account is an irreversible process. Historic and current applications, votes, and profile content, as well as any personally identifiable information will be immediately erased.")}}</p>
|
||||
|
||||
<form id="deleteAccountForm" method="POST" action={{route('deleteUser', ['user' => $profile->user->id])}}>
|
||||
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
<label for="promptConfirm">{{__('Type to confirm: ')}} "DELETE ACCOUNT"</label>
|
||||
<input type="text" name="confirmPrompt" class="form-control" placeholder="{{__('Please type the above text')}}">
|
||||
|
||||
</form>
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
|
||||
<button type="button" class="btn btn-danger" {{ ($demoActive) ? 'disabled' : '' }} onclick="document.getElementById('deleteAccountForm').submit()"><i class="fa fa-trash"></i> {{strtoupper(__('Confirm'))}}</button>
|
||||
|
||||
</x-slot>
|
||||
</x-modal>
|
||||
|
||||
<x-modal id="ipInfo" modal-label="ipInfo" modal-title="{{__('IP Address Information')}}" include-close-button="true">
|
||||
|
||||
<h4 class="text-center">{{__('Search results')}}</h4>
|
||||
|
||||
@if (!isset($ipInfo->message))
|
||||
|
||||
<table class="table table-borderless">
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>{{__('Origin country')}}</th>
|
||||
<td>{{$ipInfo->country_name ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('State/Province')}}</th>
|
||||
<td>{{$ipInfo->state_prov ?? 'None'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('District (if any)')}}</th>
|
||||
<td>{{$ipInfo->district ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('City')}}</th>
|
||||
<td>{{$ipInfo->city ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('Postal code')}}</th>
|
||||
<td>{{$ipInfo->zipcode ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('Geographical coordinates')}}</th>
|
||||
<td>{{$ipInfo->latitude ?? 0}}, {{$ipInfo->longitude ?? 0}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('European?')}}</th>
|
||||
<td>{{($ipInfo->is_eu) ? __('Yes') : __('No')}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('ISP')}}</th>
|
||||
<td>{{$ipInfo->isp ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th>{{__('Organization')}}</th>
|
||||
<td>{{$ipInfo->organization ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('Connection type (e.g. datacenter, home)')}}</th>
|
||||
<td>{{$ipInfo->connection_type ?? 'N/A'}}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>{{__('Timezone')}}</th>
|
||||
<td>{{$ipInfo->time_zone->name ?? __('N/A')}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
@else
|
||||
<div class="alert alert-danger">
|
||||
|
||||
<i class="fas fa-exclamation-circle"></i> <b>{{__("This query didn't return any results.")}}</b>
|
||||
<p>
|
||||
{{$ipInfo->message}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<x-slot name="modalFooter"></x-slot>
|
||||
</x-modal>
|
||||
|
||||
<x-modal id="editUser" modal-label="editUser" modal-title="{{__('messages.profile.edituser')}}" include-close-button="true">
|
||||
|
||||
@if($demoActive)
|
||||
<div class="alert alert-danger">
|
||||
<p class="font-weight-bold"><i class="fas fa-exclamation-triangle"></i> {{ __('This feature is disabled') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form id="updateUserForm" method="post" action="{{ route('updateUser', ['user' => $profile->user->id]) }}">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<label for="email">{{__('Email')}}</label>
|
||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="email" type="text" name="email" class="form-control" required value="{{ $profile->user->email }}" />
|
||||
|
||||
<label for="name">{{__('Name')}}</label>
|
||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="name" type="text" name="name" class="form-control" required value="{{ $profile->user->name }}" />
|
||||
|
||||
<label for="uuid">{{ __('Mojang UUID (deprecated)') }}</label>
|
||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="uuid" type="text" name="uuid" class="form-control" required value="{{ $profile->user->uuid ?? "disabled" }}" />
|
||||
<p class="text-muted text-sm">
|
||||
<i class="fas fa-exclamation-triangle"></i> {{__('messages.profile.edituser_consequence')}}
|
||||
</p>
|
||||
|
||||
<div class="form-group mt-3">
|
||||
|
||||
<label>{{__('Roles')}}</label>
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
|
||||
@foreach($roles as $roleName => $status)
|
||||
<tr>
|
||||
<th><input {{ ($demoActive) ? 'disabled' : '' }} type="checkbox" name="roles[]" value="{{ $roleName }}" {{ ($status) ? 'checked' : '' }}></th>
|
||||
<td class="col-md-2">{{ ucfirst($roleName) }}</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<x-slot name="modalFooter">
|
||||
|
||||
<button type="button" {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-warning" onclick="$('#updateUserForm').submit()"><i class="fa fa-exclamation-cicle"></i> {{__('Save changes')}}</button>
|
||||
|
||||
</x-slot>
|
||||
|
||||
</x-modal>
|
||||
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<div class="row mb-3">
|
||||
|
||||
<div class="col">
|
||||
@@ -308,7 +58,7 @@
|
||||
|
||||
<div class="card-body text-center">
|
||||
|
||||
@if ($profile->user->isBanned())
|
||||
@if (is_array($suspensionInfo))
|
||||
<del><h3>{{$profile->user->name}}</h3></del>
|
||||
@else
|
||||
<h3>{{$profile->user->name}}</h3>
|
||||
@@ -316,72 +66,16 @@
|
||||
|
||||
<p class="text-muted">{{$profile->profileShortBio}}</p>
|
||||
<p class="text-muted">{{__('Member since :date', ['date' => $since])}}</p>
|
||||
@if (Auth::user()->hasRole('admin'))
|
||||
<button type="button" class="btn btn-sm btn-info" onclick="$('#ipInfo').modal('show')">{{__('Lookup :ipAddress', ['ipAddress' => ($shouldCollect) ? $profile->user->originalIP : '0.0.0.0'])}}</button>
|
||||
@endif
|
||||
|
||||
@if ($profile->user->is(Auth::user()))
|
||||
<button type="button" class="btn btn-sm btn-warning" onclick="window.location.href='{{route('showProfileSettings')}}'"><i class="fas fa-pencil-alt"></i></button>
|
||||
@elseif (Auth::user()->hasRole('admin') && $profile->user->isStaffMember())
|
||||
<button type="button" class="btn btn-sm btn-danger" onclick="$('#terminateUser').modal('show')">{{__('Terminate Staff Member')}}</button>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
||||
@foreach ($profile->user->roles as $role)
|
||||
|
||||
<span class="badge badge-success mr-2">{{ucfirst($role->name)}}</span>
|
||||
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@if (Auth::user()->hasRole('admin'))
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
<a class="collapsed d-block" data-toggle="collapse" href="#collapse-collapsed" aria-expanded="true" aria-controls="collapse-collapsed" id="heading-collapsed">
|
||||
<i class="fa fa-chevron-down pull-right"></i>
|
||||
{{__('Account management (admin)')}}
|
||||
</a>
|
||||
</h5>
|
||||
<div id="collapse-collapsed" class="collapse" aria-labelledby="heading-collapsed">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="management-btn text-center">
|
||||
|
||||
@if (!$profile->user->isBanned())
|
||||
<button class="btn btn-danger mb-2" id="banAccountTrigger"><i class="fa fa-ban"></i> {{__('Suspend')}}</button><br>
|
||||
@else
|
||||
<form method="post" action="{{route('unbanUser', ['user' => $profile->user->id])}}">
|
||||
|
||||
@method('DELETE')
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-warning mb-2"><i class="fa fa-check"></i> {{__('Lift Suspension')}}</button>
|
||||
|
||||
</form>
|
||||
@endif
|
||||
<button class="btn btn-danger mb-2" onclick="$('#deleteAccount').modal('show')"><i class="fas fa-trash-alt"></i> {{__('Delete Account')}}</button><br>
|
||||
|
||||
<button class="btn btn-warning mb-2" onclick="$('#editUser').modal('show')"><i class="fas fa-pencil-alt"></i> {{__('Edit Account')}}</button><br>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div><!-- .col -->
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row buttonBar">
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<p>{{ __('Deleting your account is an irreversible process. The following data will be deleted (including personally identifiable data):') }}</p>
|
||||
<ul>
|
||||
<li>{{ __('Last IP address') }}</li>
|
||||
<li>{{ __('Name, Email and MC Username') }}</li>
|
||||
<li>{{ __('Your name and email address') }}</li>
|
||||
<li>{{ __('Your previous applications') }}</li>
|
||||
<li>{{ __('Your profile data and preferences') }}</li>
|
||||
<li>{{ __('Any other information stored in your user profile') }}</li>
|
||||
@@ -60,21 +60,14 @@
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="currentPassword">{{ __('Re-enter your password') }}</label>
|
||||
<input class="form-control" autocomplete="current-password" type="password" name="currentPassword" id="currentPassword" required>
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('For your security, your password is always required for sensitive operations.') }} <a href="{{ route('password.request') }}">{{ __('Forgot your password?') }}</a></p>
|
||||
</div>
|
||||
<x-confirm-password>
|
||||
{{ __('For your security, your password is always required for sensitive operations.') }}
|
||||
</x-confirm-password>
|
||||
|
||||
@if (Auth::user()->has2FA())
|
||||
<div class="form-group mt-5">
|
||||
<x-confirm-second-factor>
|
||||
{{ __('You cannot recover lost 2FA secrets.') }}
|
||||
</x-confirm-second-factor>
|
||||
|
||||
<label for="otp">{{ __('Two-factor authentication code') }}</label>
|
||||
<input type="text" id="otp" name="otp" class="form-control">
|
||||
<p class="text-muted text-sm"><i class="fas fa-info-circle"></i> {{ __('You cannot recover lost 2FA secrets.') }}</p>
|
||||
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</form>
|
||||
|
||||
@@ -247,6 +240,9 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="accountSecurityTab" data-toggle="tab" href="#accountSecurity" role="tab" aria-controls="AccountSecurity" aria-selected="true">{{__('Account Security')}}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="connectedAccountsTab" data-toggle="tab" href="#connectedAccounts" role="tab" aria-controls="ConnectedAccounts" aria-selected="false">{{__('Connected Accounts')}}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" id="twofaTab" data-toggle="tab" href="#twofa" role="tab" aria-controls="TwoFa" aria-selected="false">{{__('Two Factor Authentication')}}</a>
|
||||
</li>
|
||||
@@ -270,30 +266,102 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
@if (!Auth::user()->hasPassword())
|
||||
|
||||
<form method="POST" action="{{route('changePassword')}}" id="changePassword">
|
||||
<h5>{{ __('Your :appName account does not have a password', ['appName' => config('app.name')]) }}</h5>
|
||||
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<label for="oldpassword">{{__('Old Password')}}</label>
|
||||
<input class="form-control" name="oldPassword" type="password" id="oldpassword" autocomplete="current-password">
|
||||
<p class="text-sm text-muted">{!! __('Forgot password? Reset it <a href="/auth/password/reset">here</a>!') !!}</p>
|
||||
<p>{!! __('Because your account is linked to one or more <a href=":oAuthExplanationLink" target="_blank">OAuth</a> providers (such as Discord), there is no need for your account to use a password.', ['oAuthExplanationLink' => 'https://en.wikipedia.org/wiki/OAuth']) !!}</p>
|
||||
<p>{{ __('Because several sensitive actions on the app require you to confirm your password, you may define one below. This will also allow you to unlink your accounts and login with a password.') }}</p>
|
||||
|
||||
<div class="form-group mt-5">
|
||||
<form method="POST" action="{{ route('addPassword') }}" id="setPassword">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<label for="newpassword">{{__('New Password')}}</label>
|
||||
<input type="password" name="newPassword" id="newpassword" class="form-control" autocomplete="new-password">
|
||||
<p class="text-bold"><i class="fas fa-key"></i> {{ __('Setting a new password:') }}</p>
|
||||
|
||||
<label for="newpassword_confirmation">{{__('Confirm Password')}}</label>
|
||||
<input type="password" name="newPassword_confirmation" id="newpassword_confirmation" autocomplete="new-password" class="form-control">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label for="unlinkNewPassword">{{ __('New password') }}</label>
|
||||
<input type="password" name="newpass" id="unlinkNewPassword" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<label for="unlinkConfirmNewPassword">{{ __('Confirm new password') }}</label>
|
||||
<input type="password" name="newpass_confirmation" if="unlinkConfirmNewPassword" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="dc" value="false">
|
||||
|
||||
<button type="submit" class="btn btn-warning btn-md mt-4"><i class="fas fa-check"></i> {{ __('Set password') }}</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>
|
||||
|
||||
<form method="POST" action="{{route('changePassword')}}" id="changePassword">
|
||||
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<label for="oldpassword">{{__('Old Password')}}</label>
|
||||
<input class="form-control" name="oldPassword" type="password" id="oldpassword" autocomplete="current-password">
|
||||
<p class="text-sm text-muted">{!! __('Forgot password? Reset it <a href="/auth/password/reset">here</a>!') !!}</p>
|
||||
|
||||
<div class="form-group mt-5">
|
||||
|
||||
<label for="newpassword">{{__('New Password')}}</label>
|
||||
<input type="password" name="newPassword" id="newpassword" class="form-control" autocomplete="new-password">
|
||||
|
||||
<label for="newpassword_confirmation">{{__('Confirm Password')}}</label>
|
||||
<input type="password" name="newPassword_confirmation" id="newpassword_confirmation" autocomplete="new-password" class="form-control">
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changePassword').submit()">{{__('Change Password')}}</button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="tab-pane fade p-3" id="connectedAccounts" role="tabpanel" aria-labelledby="connectedAccountsTab">
|
||||
|
||||
<h5 class="card-title">{{ __('Connected Accounts') }}</h5>
|
||||
<p class="card-text">{{__('Manage your connected external accounts here.')}}</p>
|
||||
|
||||
@if(Auth::user()->hasDiscordConnection())
|
||||
<p class="text-muted">{{ __('Your account is currently connected to Discord.') }}</p>
|
||||
@if(!Auth::user()->hasPassword())
|
||||
<x-alert icon="fas fa-exclamation-triangle" alert-type="warning" title="{{ __('Account unlinking disabled') }}">
|
||||
{{ __("We've disabled unlinking your Discord account for now. To re-enable it, please add a password in the Account Security screen. This is to ensure you still have access to your account even after you change your Discord account email address.") }}
|
||||
</x-alert>
|
||||
@else
|
||||
<x-alert icon="fas fa-info-circle" alert-type="info" title="{{ __('Note on disconnecting accounts') }}">
|
||||
<p>{{ __("If you choose to disconnect your Discord account, we'll let Discord know by revoking your authorization. This means you will no longer be able to apply for positions that require a linked Discord account, and you may also lose any server privileges/roles that may have been granted through your linked account.") }}</p>
|
||||
<p>{{ __(" You'll be able to link your account again through this page or by signing in with Discord again, but remember that if you changed your Discord email address, you will no longer have access to your old account.") }}</p>
|
||||
</x-alert>
|
||||
@endif
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<x-button id="discordConnected" type="button" icon="fab fa-discord" color="primary" disabled> {{ __('Connected to Discord') }}</x-button>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
@if(Auth::user()->hasPassword())
|
||||
<form name="disconnectAccount" method="post" action="{{ route('unlink-discord-account') }}">
|
||||
@method('PATCH')
|
||||
@csrf
|
||||
<x-button id="discordDisconnect" type="submit" icon="fas fa-unlink" color="danger">{{ __('Disconnect') }}</x-button>
|
||||
</form>
|
||||
@else
|
||||
<x-button id="discordDisconnect" type="button" icon="fas fa-unlink" color="danger" disabled>{{ __('Disconnect') }}</x-button>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<p class="text-muted">{{ __('Your Discord account is not connected. Connect your Discord account below in order to apply for positions that require it.') }}</p>
|
||||
<x-button id="discordDisconnected" type="button" icon="fab fa-discord" color="primary" link="{{ route('discordRedirect') }}"> {{ __('Connect to Discord') }}</x-button>
|
||||
@endif
|
||||
|
||||
</form>
|
||||
|
||||
<button {{ ($demoActive) ? 'disabled' : '' }} class="btn btn-success" type="button" onclick="document.getElementById('changePassword').submit()">{{__('Change Password')}}</button>
|
||||
</div>
|
||||
<div class="tab-pane fade p-3" id="twofa" role="tabpanel" aria-labelledby="twofaTab">
|
||||
<h5 class="card-title">{{__('Two Factor Authentication')}}</h5>
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user