mirror of https://github.com/jumpserver/jumpserver
				
				
				
			perf: 去掉登录页面更好
							parent
							
								
									7f0ad7e27f
								
							
						
					
					
						commit
						84bce19a92
					
				| 
						 | 
				
			
			@ -21,8 +21,8 @@ class MFAMiddleware:
 | 
			
		|||
 | 
			
		||||
        # 这个是 mfa 登录页需要的请求, 也得放出来, 用户其实已经在 CAS/OIDC 中完成登录了
 | 
			
		||||
        white_urls = [
 | 
			
		||||
            'login/mfa', 'mfa/select', 'jsi18n/', '/static/', '/profile/otp',
 | 
			
		||||
            '/logout/', '/login/'
 | 
			
		||||
            'login/mfa', 'mfa/select', 'jsi18n/', '/static/',
 | 
			
		||||
            '/profile/otp', '/logout/',
 | 
			
		||||
        ]
 | 
			
		||||
        for url in white_urls:
 | 
			
		||||
            if request.path.find(url) > -1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue