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

2FA & E-mail verification #22

Closed
HRR1337 opened this issue Jul 23, 2021 · 2 comments
Closed

2FA & E-mail verification #22

HRR1337 opened this issue Jul 23, 2021 · 2 comments

Comments

@HRR1337
Copy link

HRR1337 commented Jul 23, 2021

Hi there.

Just trying fortify-ui on a clean Laravel installation. Got the following message when to enable 2FA:

BadMethodCallException
Call to undefined method App\Models\User::twoFactorQrCodeSvg() (View: D:\laragon\www\saas\resources\views\profile\two-factor-authentication-form.blade.php)
http://saas.test/dashboard

Edit 2: For the 2FA i had to set "use HasFactory, Notifiable, TwoFactorAuthenticatable;" in my user modal.

Edit: To enable the verifyemail I also had to "class User extends Authenticatable implements MustVerifyEmail" <<

Can be closed.

HRR

@gui1535
Copy link

gui1535 commented Jun 18, 2024

Thank you, the same error happened here and I carried out the process in Laravel 11 and it still works

@zacksmash
Copy link
Owner

@HRR1337 @gui1535

This is all in the readme, just FYI. In order to enable certain features you have to follow those instructions.

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

3 participants