Automation/app/Libraries/MyAuth/LocalLibrary.php
2024-09-10 18:04:49 +09:00

34 lines
867 B
PHP

<?php
namespace App\Libraries\MyAuth;
use App\Entities\UserEntity;
class LocalLibrary extends MyAuthLibrary
{
public function __construct()
{
parent::__construct();
}
public function getAuthButton()
{
return "";
}
public function execute(): UserEntity
{
return new UserEntity();
// $formDatas = $this->getFormDatas();
// if (!isset($formDatas['id']) || !$formDatas['id'] || !isset($formDatas['passwd']) || !$formDatas['passwd']) {
// throw new \Exception("ID 나 암호의 값이 없습니다.");
// }
// $entity = $this->getUserModel()->getEntity(['id' => $formDatas['id'], 'status' => DEFAULTS['STATUS']]);
// if (!password_verify($formDatas['passwd'], $entity->passwd)) {
// throw new \Exception("암호가 맞지않습니다.");
// }
// //Session에 인증정보 설정
// return $this->setSession_process($entity);;
}
}