Тёмный

Laravel Auth: Add Two-Factor Verification via Email 

Laravel Daily
Подписаться 141 тыс.
Просмотров 29 тыс.
50% 1

Presenting a demo-project with two-factor code sent via email. In this video, I will explain the logic of various parts in the code.
Github repository: github.com/LaravelDaily/Larav...
- - - - -
Try our QuickAdminPanel code generator: bit.ly/quickadminpanel
My 50+ Laravel tips in a FREE e-book: bit.ly/laravel-tips
- - - - -
My team is available for freelance Laravel work, check out my Upwork profile: bit.ly/povilas-korop-upwork

Хобби

Опубликовано:

 

5 окт 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@frankclark4897
@frankclark4897 3 года назад
Thanks, this looks like a good starting point for custom 2fa integrations. Good approach and scaffolding for expanding out to per-device and perhaps adding expiry.
@biswanathbanik9505
@biswanathbanik9505 3 года назад
Thank you so much this laravel project really help me a lots to build a project for my company
@CodeCraftHub-mb1mp
@CodeCraftHub-mb1mp 2 года назад
Thank you so much sir. I was working with sms on mobile number. This video helps me alot.
@Spoutnik1707
@Spoutnik1707 2 года назад
That's really interesting! Indeed I would see a feature querying up the user preference; if the user disabling the 2FA in his "account settings". (So the user could enable/disable the 2FA prompt) :)
@aronspiess9490
@aronspiess9490 3 года назад
This is a great video for 5.8. Looking for a video using this but updated for livewire auth laravel 7+
@marshalnzenza6732
@marshalnzenza6732 3 года назад
This was helpful,,,thank you.
@lukaszjozwiak3265
@lukaszjozwiak3265 4 года назад
Thank You! Great job.
@alinazari8189
@alinazari8189 4 года назад
Very good. Interesting!
@ste1128
@ste1128 Год назад
Amazing tutorials. I always find my answers in your videos! I just implemented this. I have a question about the Two Factor Controller. Why is the "twofactor" middleware in the construct and not only "auth"? A user will never be twofactor-authed in that controller. Or what am i missing?
@novocanal7153
@novocanal7153 8 месяцев назад
Magnifico, explêndido.
@neymat3257
@neymat3257 3 года назад
thanks for this video, i am getting "Call to a member function lt() on string” with laravel 8, please help me
@geethar8013
@geethar8013 3 года назад
very helpful..thankyou
@lahoucineoldakdim7778
@lahoucineoldakdim7778 2 года назад
I prefer using events and listener in this case by using Login and Logout Event class 😌
@seanronquillo8353
@seanronquillo8353 3 года назад
im getting this error Argument 1 passed to App\Http\Controllers\Auth\LoginController::authenticated() must be an instance of Request, instance of Illuminate\Http\Request given
@nabeelyousafpasha
@nabeelyousafpasha 4 года назад
Thanks. Love from Pakistan
@lazarospapanikolaoy8236
@lazarospapanikolaoy8236 3 года назад
it was really interesting. Can you saw us how to add 2fa via mobile number?
@luukschouten9108
@luukschouten9108 8 месяцев назад
in my code it doesnt even run protected function authenticated in the LoginController, i checked all name spaces and cleared cache. using laravel version 8.83.11
@habibchauhan214
@habibchauhan214 3 года назад
Thanks a lot. 👍
@slavigeorgiev19
@slavigeorgiev19 4 года назад
Thanks!
@alila3883
@alila3883 2 года назад
very helpful
@samsularipin9097
@samsularipin9097 2 года назад
why email verification not sent after submit login, but verification email sent after click resend verification code ?
@janettaylor260
@janettaylor260 3 года назад
Hi Povilas I am using Breeze for my authentication scaffolding and would really like to incorporate this two factor into my app. However, Breeze doesn't come with a Login Controller so not sure where the code should go. Please can you advise. Thanks Jan
@PovilasKorop
@PovilasKorop 3 года назад
In Breeze, you can implement it only manually, yourself. If you want two-factor built-in, use Jetstream.
@aronspiess9490
@aronspiess9490 4 года назад
hmmm, not working with my setup. After logging in, the middleware twofactor.php is skipped and no email is sent. I automatically get logged in and just get the code in the database.
@aronspiess9490
@aronspiess9490 4 года назад
Actually, this is partially working. I found the emails in my spam folder, and when I click on one of my admin routes, only then do I get the prompt for my 2fa token.
@user-hc8xt5vo3s
@user-hc8xt5vo3s 3 года назад
your solution has one problem, if one user successfully logs in, and the second enters the correct username and password, then all users will be quit and will be prompted to enter a code. How i can fix this problem?
@alpeshrathod1397
@alpeshrathod1397 Год назад
Sometimes I get too many redirects. What could be the problem?
@ninjatravelpro4759
@ninjatravelpro4759 3 года назад
Badly i can't geting in worked no emails and no errors strange..
@webwordpress6376
@webwordpress6376 3 года назад
In PackageManifest.php line 122: unidentified name. error during key generate command ?
@webwordpress6376
@webwordpress6376 3 года назад
i am replying to my own comment this issue is solved now when i run the application and click on public it redirect to login and said the requested URL is not found.
@webwordpress6376
@webwordpress6376 3 года назад
did you change the routes because non of them so far work for me.
@danielngao9394
@danielngao9394 2 года назад
sorry am beginner in laravel bt i cannot see the twofactor middleware on in the folder
@drugoviic
@drugoviic 2 года назад
you have to make it
@webwordpress6376
@webwordpress6376 3 года назад
PragmaRX\Google2FA\Exceptions\SecretKeyTooShortException Secret key is too short. Must be at least 16 base32 characters in laravel .. anyone please
@ashrafbendary
@ashrafbendary 2 года назад
Can Laravel ui auth have 2fa with Google authenticator ?!
@LaravelDaily
@LaravelDaily 2 года назад
No Laravel UI doesn't have that feature
@ashrafbendary
@ashrafbendary 2 года назад
@@LaravelDaily so what's the best way to apply google authenticator for two step authentication with Laravel ui auth
@LaravelDaily
@LaravelDaily 2 года назад
Code it manually. I can't answer this in a RU-vid comment.
@ashrafbendary
@ashrafbendary 2 года назад
@@LaravelDaily could you answer in daily video
@user-tc7lh9tm9m
@user-tc7lh9tm9m 2 года назад
for now it is a bad method, because we use it for user and not for the session, tokens and more (sorry for my bad english, i am russian)
Далее
Laravel SPA Authentication - setup and common mistakes
16:55
НУБ ИЩЕТ ЖЕНУ В GTA SAMP
22:34
Просмотров 334 тыс.
Еду за гитарой…
01:00
Просмотров 232 тыс.
File Upload in Laravel: Main Things You Need To Know
13:58
DHH discusses SQLite (and Stoicism)
54:00
Просмотров 54 тыс.
13.4 - Laravel Fortify: Two Factor Authentication (2FA)
32:06
Slow Mo Spiral
0:11
Просмотров 41 млн