cakephp-two-factor-auth
cakephp-two-factor-auth copied to clipboard
cakephp 4.x verify function
Hi. How to access to users data (and his secret) within verify action? I'd like to read usersecret and useremail but I havent in verify action..
I miss something?
public function verify() { $this->Authorization->skipAuthorization(); $this->request->allowMethod(['get', 'post']); $secret="usersecret"; $secretDataUri = $this->TwoFactorAuth->getQRCodeImageAsDataUri('useremail', $secret); $this->set(compact('secretDataUri')); }