![]() |
Shield Authentication Actions Customize - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: Shield Authentication Actions Customize (/showthread.php?tid=90522) |
Shield Authentication Actions Customize - TakonSix - 03-30-2024 Hi, i am trying on a new composer install Codeigniter & Shield to include a new Authentication Action "activate by admin". First i try to copy EmailActivator named it AdminActivator and delete the email part and the createCodeIdentity. But i ended in a 404! Then i try copy EmailActivator named it AdminActivator and delete the email part and add to show function PHP Code: $this->deleteIdentity($user); PHP Code: private function deleteIdentity(User $user) Now i wanna make this secure for any updates of Shield. So i make some folder under App (Authentication/Actions) and place there my new AdminActivator.php In App/Config/Auth.php PHP Code: public array $actions = [ Code: Call to a member function createIdentity() on null what am i missing? |