laravel / jetstream

Tailwind scaffolding for the Laravel framework.
https://jetstream.laravel.com
MIT License
3.95k stars 809 forks source link

MustVerifyEmail not work #318

Closed AliGh1 closed 3 years ago

AliGh1 commented 3 years ago

Description: Hi, I proceeded to enable email verification according to jetstream documentation, but it still does not work I have removed the comment on the config / fortify.php configuration file attribute input item: 'features' => [ Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::updateProfileInformation(), Features::updatePasswords(), Features::twoFactorAuthentication([ 'confirmPassword' => true, ]), ], and I implemented the App \ Models \ User class of the MustVerifyEmail interface. use MustVerifyEmail;

amayer5125 commented 3 years ago

You don't want to add use MustVerifyEmail; to the User class. You need to make the User class implement the MustVerifyEmail interface. This is done like this:

class User extends Authenticatable implements MustVerifyEmail
AliGh1 commented 3 years ago

Thank you, it works properly now

hojabbr commented 3 years ago

Features::emailVerification() is gone!

amayer5125 commented 3 years ago

@hojabbr are you looking in config/fortify.php?