Make passwords mandatory
This commit is contained in:
parent
e75be34afd
commit
28e30a05e6
@ -262,8 +262,8 @@ class SystemController extends Controller
|
|||||||
$validate = $request->validate([
|
$validate = $request->validate([
|
||||||
'zone_id' => 'required|exists:zones,id',
|
'zone_id' => 'required|exists:zones,id',
|
||||||
'sespass' => 'required|string|min:4',
|
'sespass' => 'required|string|min:4',
|
||||||
'pktpass' => 'nullable|string|min:4|max:8',
|
'pktpass' => 'required|string|min:4|max:8',
|
||||||
'ticpass' => 'nullable|string|min:4',
|
'ticpass' => 'required|string|min:4',
|
||||||
'fixpass' => 'required|string|min:4',
|
'fixpass' => 'required|string|min:4',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -59,10 +59,12 @@
|
|||||||
<label for="pktpass" class="form-label">Packet Password</label>
|
<label for="pktpass" class="form-label">Packet Password</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-box"></i></span>
|
<span class="input-group-text"><i class="bi bi-box"></i></span>
|
||||||
<input type="text" style="width: 35%;" class="form-control @error('pktpass') is-invalid @enderror" id="pktpass" placeholder="Packet" name="pktpass" value="{{ old('pktpass') }}" @cannot('update',$o)disabled @endcannot>
|
<input type="text" style="width: 35%;" class="form-control @error('pktpass') is-invalid @enderror" id="pktpass" placeholder="Packet" name="pktpass" value="{{ old('pktpass') }}" @cannot('update',$o)disabled @endcannot required>
|
||||||
<span class="invalid-feedback" role="alert">
|
<span class="invalid-feedback" role="alert">
|
||||||
@error('pktpass')
|
@error('pktpass')
|
||||||
{{ $message }}
|
{{ $message }}
|
||||||
|
@else
|
||||||
|
Packet password required.
|
||||||
@enderror
|
@enderror
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -91,10 +93,12 @@
|
|||||||
<label for="ticpass" class="form-label">TIC Password</label>
|
<label for="ticpass" class="form-label">TIC Password</label>
|
||||||
<div class="input-group has-validation">
|
<div class="input-group has-validation">
|
||||||
<span class="input-group-text"><i class="bi bi-archive"></i></span>
|
<span class="input-group-text"><i class="bi bi-archive"></i></span>
|
||||||
<input type="text" style="width: 35%;" class="form-control @error('ticpass') is-invalid @enderror" id="ticpass" placeholder="TIC" name="ticpass" value="{{ old('ticpass') }}" @cannot('update',$o)disabled @endcannot>
|
<input type="text" style="width: 35%;" class="form-control @error('ticpass') is-invalid @enderror" id="ticpass" placeholder="TIC" name="ticpass" value="{{ old('ticpass') }}" @cannot('update',$o)disabled @endcannot required>
|
||||||
<span class="invalid-feedback" role="alert">
|
<span class="invalid-feedback" role="alert">
|
||||||
@error('ticpass')
|
@error('ticpass')
|
||||||
{{ $message }}
|
{{ $message }}
|
||||||
|
@else
|
||||||
|
TIC password required.
|
||||||
@enderror
|
@enderror
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user