Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cakephp 4.x verify function #21

Open
braguzz opened this issue Mar 21, 2022 · 0 comments
Open

cakephp 4.x verify function #21

braguzz opened this issue Mar 21, 2022 · 0 comments

Comments

@braguzz
Copy link

braguzz commented Mar 21, 2022

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'));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant