/home/techb158/ileadtechnology.com/SSM/app/Repositories/auth
Edit: /home/techb158/ileadtechnology.com/SSM/app/Repositories/auth/TwoFactorSecurityRepository.php (1399B)
id, $two_factor_code, 10 * 60);
if (config('config.two_factor_security_method') == 'email') {
$user->notify(new TwoFactorSecurity($two_factor_code));
} else if (config('config.two_factor_security_method') == 'sms') {
if ($user->hasRole(config('system.default_role.student'))) {
$number = optional($user->student)->contact_number;
} else if ($user->hasRole(config('system.default_role.parent'))) {
$number = optional($user->parent)->first_guardian_contact_number_1;
} else {
$number = optional($user->employee)->contact_number;
}
$sms = 'Your login OTP is '.$two_factor_code.' valid for 10 minutes. Do not share this code with any one. '. config('app.name');
if ($number) {
SendSMS::dispatch([$number], $sms);
}
}
return $two_factor_code;
}
}