@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace plunner\Http\Controllers\Companies\Auth; |
| 4 | 4 | |
| 5 | -use plunner\Company; |
|
| 6 | -use Validator; |
|
| 7 | -use plunner\Http\Controllers\Controller; |
|
| 8 | 5 | use Tymon\JWTAuth\Support\auth\AuthenticatesAndRegistersUsers; |
| 9 | 6 | use Tymon\JWTAuth\Support\auth\ThrottlesLogins; |
| 7 | +use Validator; |
|
| 8 | +use plunner\Company; |
|
| 9 | +use plunner\Http\Controllers\Controller; |
|
| 10 | 10 | |
| 11 | 11 | class AuthController extends Controller |
| 12 | 12 | { |
@@ -90,8 +90,9 @@ |
||
| 90 | 90 | { |
| 91 | 91 | config(['jwt.ttl' =>'43200']); //30 days |
| 92 | 92 | $this->custom = array_merge($this->custom, ['remember'=>'true']); |
| 93 | - }else |
|
| 94 | - $this->custom = array_merge($this->custom, ['remember'=>'false']); |
|
| 93 | + } else { |
|
| 94 | + $this->custom = array_merge($this->custom, ['remember'=>'false']); |
|
| 95 | + } |
|
| 95 | 96 | return $this->postLoginOriginal($request); |
| 96 | 97 | } |
| 97 | 98 | |
@@ -3,13 +3,12 @@ |
||
| 3 | 3 | namespace plunner\Http\Controllers\Employees\Auth; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | -use plunner\Company; |
|
| 7 | -use plunner\employee; |
|
| 8 | -use Validator; |
|
| 9 | -use plunner\Http\Controllers\Controller; |
|
| 10 | 6 | use Tymon\JWTAuth\Support\auth\AuthenticatesAndRegistersUsers; |
| 11 | 7 | use Tymon\JWTAuth\Support\auth\ThrottlesLogins; |
| 12 | -use Log; |
|
| 8 | +use Validator; |
|
| 9 | +use plunner\Company; |
|
| 10 | +use plunner\Http\Controllers\Controller; |
|
| 11 | +use plunner\employee; |
|
| 13 | 12 | |
| 14 | 13 | class AuthController extends Controller |
| 15 | 14 | { |
@@ -90,8 +90,9 @@ |
||
| 90 | 90 | { |
| 91 | 91 | config(['jwt.ttl' =>'43200']); //30 days |
| 92 | 92 | $this->custom = array_merge($this->custom, ['remember'=>'true']); |
| 93 | - }else |
|
| 94 | - $this->custom = array_merge($this->custom, ['remember'=>'false']); |
|
| 93 | + } else { |
|
| 94 | + $this->custom = array_merge($this->custom, ['remember'=>'false']); |
|
| 95 | + } |
|
| 95 | 96 | return $this->postLoginOriginal($request); |
| 96 | 97 | } |
| 97 | 98 | |