add dd to troubleshoot email sending
This commit is contained in:
@@ -66,7 +66,13 @@ class LoginController extends Controller
|
||||
]);
|
||||
\Log::info($otp);
|
||||
|
||||
// Mail::to($staff->email)->send(new LoginOtpMail($otp));
|
||||
|
||||
try {
|
||||
Mail::to($staff->email)->send(new LoginOtpMail($otp));
|
||||
} catch (\Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
session(['otp_staff_id' => $staff->id]);
|
||||
|
||||
|
||||
@@ -35,8 +35,6 @@ class OtpController extends Controller
|
||||
'otp_expires_at' => null
|
||||
]);
|
||||
|
||||
// Log the staff member in
|
||||
// NOTE: If using a specific guard, use Auth::guard('staff')->login($staff);
|
||||
Auth::login($staff);
|
||||
|
||||
// Clear the temp session
|
||||
|
||||
Reference in New Issue
Block a user