Added warning if user still uses default password

This commit is contained in:
Julian Prieber 2022-06-28 12:13:39 +02:00
parent 3821d8c277
commit 7103f8dc1d

View File

@ -294,6 +294,23 @@ if($url1sb == '200' or $url2sb == '200') {
</div
</div>
</nav>
{{-- Displays a warning message if default password is still set --}}
@php $userdbs = DB::table('users')->get(); @endphp
@foreach($userdbs as $userdb)
@if(Hash::check('12345678', $userdb->password))
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a style="background-color:tomato;color:#fff;border-radius:5px;" class="nav-link" href="{{ url('/studio/profile') }}" target=""><i class="bi bi-exclamation-circle-fill"></i> <strong>You are still using the default password! Click here to change this.</strong></a>
</div>
</nav>
@endif
@endforeach
<! #### begin event detection #### >
<?php
try {