You mean 6 or 4 digit pincode like unlock on mobile along with password?

|
YOUCODEWORLD 2021-05-27 20:38:39
flyingdragons 2021-05-27 20:38:02
Thank you. Its working fine for me with the following config

MAIL_MAILER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025

I use MAC. This might be different for other OS version not sure

All same.

flyingdragons 2021-05-27 20:38:49
YOUCODEWORLD 2021-05-27 20:38:39
All same.

Cool

2021-05-27 20:39:05
YOUCODEWORLD 2021-05-27 20:36:14
SET YOUR >ENV MAIL_HOST=localhost

laravel_discuss-83027.jpg

YOUCODEWORLD 2021-05-27 20:39:37
2021-05-27 20:39:05

You make sure you mailhog is running

YOUCODEWORLD 2021-05-27 20:41:06
You try vist 127.0.0.1:8025 (this is your mailhog port)
YOUCODEWORLD 2021-05-27 20:41:31
laravel_discuss-83030.jpg

YOUCODEWORLD 2021-05-27 20:41:42
If you see like this your mailhog is running
flyingdragons 2021-05-27 20:42:19
@SourceMe99764 Have you used Laravel Octance?
Fred_ki 2021-05-27 20:42:52
anybody ever tried to use pini and phone no./email for login authentication to tell me how i will go about it?
flyingdragons 2021-05-27 20:45:39
Fred_ki 2021-05-27 20:42:52
anybody ever tried to use pini and phone no./email for login authentication to tell me how i will go about it?

$user = User::where(‘pini’, request()->get(‘username’))
->orWhere(‘phone’, request()->get(‘username’))
->orWhere(’email’, request()->get(‘username’))
->first();

if ($user->is_blocked) {
throw new UserIsBlockedException(‘You have been blocked.’);
}

if (!$this->decrypt($request->get(‘password’), $user->password)) {
throw new Exception(‘Email / Password not valid.’);
}

flyingdragons 2021-05-27 20:46:02
flyingdragons 2021-05-27 20:45:39
$user = User::where(‘pini’, request()->get(‘username’))
->orWhere(‘phone’, request()->get(‘username’))
->orWhere(’email’, request()->get(‘username’))
->first();

if ($user->is_blocked) {
throw new UserIsBlockedException(‘You have been blocked.’);
}

if (!$this->decrypt($request->get(‘password’), $user->password)) {
throw new Exception(‘Email / Password not valid.’);
}

Basically you can use this kind of code to get started with

flyingdragons 2021-05-27 20:46:32
Not sure whats the name of the filed your passing but I assumed it as username
Fred_ki 2021-05-27 20:48:14
flyingdragons 2021-05-27 20:45:39
$user = User::where(‘pini’, request()->get(‘username’))
->orWhere(‘phone’, request()->get(‘username’))
->orWhere(’email’, request()->get(‘username’))
->first();

if ($user->is_blocked) {
throw new UserIsBlockedException(‘You have been blocked.’);
}

if (!$this->decrypt($request->get(‘password’), $user->password)) {
throw new Exception(‘Email / Password not valid.’);
}

sorry i meant pin like pin code is it the same?

flyingdragons 2021-05-27 20:49:13
You mean 6 or 4 digit pincode like unlock on mobile along with password?
Fred_ki 2021-05-27 20:49:55
im trying to input a pin (i named the field as pin)and user can input either phone no. or email adresss(named the field as email)..
flyingdragons 2021-05-27 20:50:27
Can you please show your frontend design
flyingdragons 2021-05-27 20:50:38
So that I can get an idea
flyingdragons 2021-05-27 20:50:58
Fred_ki 2021-05-27 20:49:55
im trying to input a pin (i named the field as pin)and user can input either phone no. or email adresss(named the field as email)..

Ah! Got it.

Fred_ki 2021-05-27 20:51:13
laravel_discuss-83043.jpg

JS 2021-05-27 20:51:56
Guys who wish to attend laravel training free can dm me.
Fred_ki 2021-05-27 20:51:59
flyingdragons 2021-05-27 20:50:58
Ah! Got it.

youve seen it?

flyingdragons 2021-05-27 20:53:32
$user = User::where(‘phone’, request()->get(’email’))
->orWhere(’email’, request()->get(’email’))
->first();

if (!$user) {
//
}
//and other validation

if (request()->get(‘ping’) != $user->ping)) {
throw new Exception(‘Email, Phone / Pin is not valid.’);
}

//users passed proper ping and email or phone number

flyingdragons 2021-05-27 20:53:59
flyingdragons 2021-05-27 20:53:32
$user = User::where(‘phone’, request()->get(’email’))
->orWhere(’email’, request()->get(’email’))
->first();

if (!$user) {
//
}
//and other validation

if (request()->get(‘ping’) != $user->ping)) {
throw new Exception(‘Email, Phone / Pin is not valid.’);
}

//users passed proper ping and email or phone number

@Fred_ki try this

2021-05-27 21:06:54
YOUCODEWORLD 2021-05-27 20:41:42
If you see like this your mailhog is running

Yes runing like this

flyingdragons 2021-05-27 21:07:24
2021-05-27 21:06:54
Yes runing like this

Then your mail should work fine now

flyingdragons 2021-05-27 21:07:35
Go ahead and try some
2021-05-27 21:08:58
YOUCODEWORLD 2021-05-27 20:41:42
If you see like this your mailhog is running

laravel_discuss-83051.jpg

2021-05-27 21:11:04
flyingdragons 2021-05-27 21:07:35
Go ahead and try some

Not working picture errors coming

flyingdragons 2021-05-27 21:11:13
2021-05-27 21:08:58

Oh boy you have messed up something with the mail code

2021-05-27 21:11:35
What
flyingdragons 2021-05-27 21:12:13
2021-05-27 21:11:35
What

Your email sending code taking too much of time

flyingdragons 2021-05-27 21:12:25
Not sure why. Unless you show your code
2021-05-27 21:12:52
flyingdragons 2021-05-27 21:12:13
Your email sending code taking too much of time

What i do please

2021-05-27 21:13:45
flyingdragons 2021-05-27 21:12:25
Not sure why. Unless you show your code

Ok what controller or view

2021-05-27 21:52:24
flyingdragons 2021-05-27 21:12:13
Your email sending code taking too much of time

I configured to an gmail address but email is coming in mailhog

|