mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 22:28:05 +01:00 
			
		
		
		
	safe check
This commit is contained in:
		
							parent
							
								
									db4951bc61
								
							
						
					
					
						commit
						b6437b5a4c
					
				| @ -51,6 +51,10 @@ func SocialSignIn(ctx *middleware.Context) { | |||||||
| 		ctx.Handle(500, fmt.Sprintf("UserInfo(%s)", name), err) | 		ctx.Handle(500, fmt.Sprintf("UserInfo(%s)", name), err) | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|  | 	if len(ui.Identity) == 0 { | ||||||
|  | 		ctx.Handle(404, "no identity is presented", errors.New(name)) | ||||||
|  | 		return | ||||||
|  | 	} | ||||||
| 	log.Info("social.SocialSignIn(social login): %s", ui) | 	log.Info("social.SocialSignIn(social login): %s", ui) | ||||||
| 
 | 
 | ||||||
| 	oa, err := models.GetOauth2(ui.Identity) | 	oa, err := models.GetOauth2(ui.Identity) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user