diff --git a/app/Controllers/Authentication.php b/app/Controllers/Authentication.php index 699f3af7..78392676 100755 --- a/app/Controllers/Authentication.php +++ b/app/Controllers/Authentication.php @@ -264,8 +264,8 @@ class Authentication extends BaseController $details = $auth_model->getheringDetailsForHeader($session_uid); $data['loggedin_person'] = $session_uname; $data['loggedin_person_role'] = $details[0]['role']; - $data['favicon'] = $details[0]['favicon']; - $data['profile_picture'] = $details[0]['profile_picture']; + $data['favicon'] = file_exists(base_url()."public/uploads/".$details[0]['favicon']) ? base_url()."public/uploads/".$details[0]['favicon'] : base_url()."public/uploads/default.ico"; + $data['profile_picture'] = file_exists(base_url()."public/uploads/".$details[0]['profile_picture']) ? base_url()."public/uploads/".$details[0]['profile_picture'] : base_url()."public/assets/images/users/avatar-9.jpg"; $successMessage = session()->getFlashdata('success'); $validationErrors = session()->getFlashdata('error'); // Load and display the form view with the above data diff --git a/app/Views/auth_lock_screen.php b/app/Views/auth_lock_screen.php index 2302b587..953ed9ac 100644 --- a/app/Views/auth_lock_screen.php +++ b/app/Views/auth_lock_screen.php @@ -8,7 +8,7 @@ - "> + " rel="stylesheet" type="text/css" id="bs-default-stylesheet" /> " rel="stylesheet" type="text/css" id="app-default-stylesheet" /> @@ -48,7 +48,7 @@
Enter your password to access the = $loggedin_person_role; ?>