kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update AuthServiceProvider
							rodzic
							
								
									235790e04d
								
							
						
					
					
						commit
						4fa5ca4f82
					
				| 
						 | 
				
			
			@ -27,7 +27,7 @@ class AuthServiceProvider extends ServiceProvider
 | 
			
		|||
        $this->registerPolicies();
 | 
			
		||||
 | 
			
		||||
        if(config('pixelfed.oauth_enabled')) {
 | 
			
		||||
            Passport::routes(null, ['middleware' => [ \Barryvdh\Cors\HandleCors::class ]]);
 | 
			
		||||
            Passport::routes(null, ['middleware' => ['twofactor','validemail',\Barryvdh\Cors\HandleCors::class]]);
 | 
			
		||||
            Passport::tokensExpireIn(now()->addDays(15));
 | 
			
		||||
            Passport::refreshTokensExpireIn(now()->addDays(30));
 | 
			
		||||
            Passport::enableImplicitGrant();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue