Myras Posted December 16, 2021 Share Posted December 16, 2021 Hello, I am asking you for information. Is it possible to verify an admin account in your own script, for example by taking its password hash and using the password_verify function in php on it? <?php $admin = $this->adminService->getByUsername($username); //get admin from tbladmins if (password_verify($passwordRequest, $admin->passwordhash)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.