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:
2021-10-20 03:43:58 +01:00
parent 2ca891b3b0
commit 5ff96143a7
6 changed files with 7 additions and 21 deletions

View File

@@ -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())

View File

@@ -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>

View File

@@ -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>