Skip to content

Commit 7103f8d

Browse files
committed
Added warning if user still uses default password
1 parent 3821d8c commit 7103f8d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

resources/views/layouts/sidebar.blade.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="{{ asset('littlelink/css/animate.css') }}">
1212

1313
<link href="//fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900" rel="stylesheet">
14-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
14+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
1515
<!-- begin dark mode detection -->
1616
<script src="{{ asset('littlelink/js/js.cookie.min.js') }}"></script>
1717
<script>
@@ -294,6 +294,23 @@ function URL_exists(string $urlsb): bool
294294
</div
295295
</div>
296296
</nav>
297+
298+
{{-- Displays a warning message if default password is still set --}}
299+
@php $userdbs = DB::table('users')->get(); @endphp
300+
301+
@foreach($userdbs as $userdb)
302+
303+
@if(Hash::check('12345678', $userdb->password))
304+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
305+
<div class="container-fluid">
306+
<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>
307+
</div>
308+
</nav>
309+
@endif
310+
311+
@endforeach
312+
313+
297314
<! –– #### begin event detection #### ––>
298315
<?php
299316
try {

0 commit comments

Comments
 (0)