From 6ca0ded39042ee3aec683612976f0aec1da3e581 Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Mon, 9 Feb 2026 14:01:59 +0700 Subject: [PATCH] update --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 31d011b..b9c59aa 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -137,7 +137,7 @@ class ProfileController extends Controller 'password.regex' => 'Format Kata Sandi harus mengandung minimal Huruf Besar, Huruf Kecil, Angka, Spesial Karakter', ])->validate(); - $profile = Profile::where('npsn',auth()->user()->profile->npsn)->first(); + $profile = Profile::where('npsn',auth()->user()->username)->first(); $profile->alamat_sekolah = $request->alamat_sekolah; $profile->kontak_person = $request->kontak_person; $profile->telp = $request->telp;