mail config
This commit is contained in:
parent
0701aea3c1
commit
f145377536
|
|
@ -35,6 +35,30 @@
|
|||
//controller where all auth process for client happens
|
||||
class AuthController extends Controller
|
||||
{
|
||||
// protected $maxAttempts = 5;
|
||||
// protected $decayMinutes = 30;
|
||||
|
||||
// /**
|
||||
// * Get the maximum number of attempts to allow.
|
||||
// *
|
||||
// * @return int
|
||||
// */
|
||||
|
||||
// public function maxAttempts()
|
||||
// {
|
||||
// return property_exists($this, 'maxAttempts') ? $this->maxAttempts : 5;
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Get the number of minutes to throttle for.
|
||||
// *
|
||||
// * @return int
|
||||
// */
|
||||
|
||||
// public function decayMinutes()
|
||||
// {
|
||||
// return property_exists($this, 'decayMinutes') ? $this->decayMinutes : 1;
|
||||
// }
|
||||
|
||||
/**
|
||||
* @OA\POST(
|
||||
|
|
@ -81,7 +105,13 @@ public function login(LoginRequest $request){
|
|||
], 401);
|
||||
}
|
||||
|
||||
Auth::login($client);
|
||||
$credentials = $request->only('email', 'password');
|
||||
|
||||
Auth::attempt($credentials);
|
||||
|
||||
//Auth::login($client);
|
||||
|
||||
|
||||
|
||||
$client->tokens()->delete();
|
||||
|
||||
|
|
|
|||
|
|
@ -36,13 +36,15 @@
|
|||
'mailers' => [
|
||||
'smtp' => [
|
||||
'transport' => 'smtp',
|
||||
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
||||
'host' => env('MAIL_HOST', 'smtp.yandex.ru'),
|
||||
'port' => env('MAIL_PORT', 587),
|
||||
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
||||
'username' => env('MAIL_USERNAME'),
|
||||
'password' => env('MAIL_PASSWORD'),
|
||||
'timeout' => null,
|
||||
'local_domain' => env('MAIL_EHLO_DOMAIN'),
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'birzha@digital-tps.tk'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Birzha legalizasia'),
|
||||
],
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue