This commit is contained in:
Naden
2026-04-25 06:28:05 +07:00
parent e908b7a1d6
commit 47e9949cef
2 changed files with 3 additions and 2 deletions

View File

@@ -112,7 +112,8 @@ class PersonelController extends BaseController
*/
public function generateEncryptedLink()
{
$nrp = $this->request->getPost('nrp');
$json = $this->request->getJSON();
$nrp = $json ? $json->nrp : $this->request->getPost('nrp');
if (!$nrp) {
$this->respond(['status' => 'error', 'message' => 'NRP wajib diisi'], 400);