mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	fix: email claim constant
This commit is contained in:
		
							parent
							
								
									8697f72068
								
							
						
					
					
						commit
						b8f3abda5a
					
				| @ -234,7 +234,7 @@ class OAuthManager: | ||||
|             log.warning(f"OAuth callback error: {e}") | ||||
|             raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED) | ||||
|         user_data: UserInfo = token.get("userinfo") | ||||
|         if not user_data or "email" not in user_data: | ||||
|         if not user_data or auth_manager_config.OAUTH_EMAIL_CLAIM not in user_data: | ||||
|             user_data: UserInfo = await client.userinfo(token=token) | ||||
|         if not user_data: | ||||
|             log.warning(f"OAuth callback failed, user data is missing: {token}") | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user