Fix no-license UUID bug
This commit fixes a registration bug while license requirements are off. Since the app always expects a UUID, it would error out without one.
This commit is contained in:
@@ -114,8 +114,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{__('messages.players.ign')}}</th>
|
||||
<th>UUID</th>
|
||||
<th>{{__('Name')}}</th>
|
||||
<th>{{__('messages.contactlabel_email')}}</th>
|
||||
<th>{{__('messages.reusable.status')}}</th>
|
||||
<th>{{__('messages.players.reg_date')}}</th>
|
||||
@@ -129,8 +128,7 @@
|
||||
|
||||
<tr>
|
||||
<td>{{$user->id}}</td>
|
||||
<td>{{UUID::toUsername($user->uuid)}}</td>
|
||||
<td>{{$user->uuid}}</td>
|
||||
<td>{{$user->name}}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
@if ($user->isBanned())
|
||||
|
@@ -47,7 +47,6 @@
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{__('messages.staff.f_name')}}</th>
|
||||
<th>UUID</th>
|
||||
<th>{{__('messages.staff.rank')}}</th>
|
||||
<th>{{__('messages.contactlabel_email')}}</th>
|
||||
<th>{{__('messages.reusable.status')}}</th>
|
||||
@@ -63,7 +62,6 @@
|
||||
<tr>
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>{{$user->name}}</td>
|
||||
<td>{{UUID::toUsername($user->uuid)}}</td>
|
||||
<td>
|
||||
@foreach($user->roles as $role)
|
||||
<span class="badge badge-info badge-sm">{{$role->name}}</span>
|
||||
|
@@ -244,7 +244,7 @@
|
||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="name" type="text" name="name" class="form-control" required value="{{ $profile->user->name }}" />
|
||||
|
||||
<label for="uuid">Mojang UUID</label>
|
||||
<input {{ ($demoActive) ? 'disabled' : '' }} id="uuid" type="text" name="uuid" class="form-control" required value="{{ $profile->user->uuid }}" />
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user