mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 01:51:04 +01:00 
			
		
		
		
	Add missing return in oidc.go
This commit is contained in:
		
							parent
							
								
									e8faff4fe2
								
							
						
					
					
						commit
						200c10e48c
					
				
							
								
								
									
										4
									
								
								oidc.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								oidc.go
									
									
									
									
									
								
							@ -162,7 +162,7 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
 | 
				
			|||||||
			Msg("Failed to decode id token claims")
 | 
								Msg("Failed to decode id token claims")
 | 
				
			||||||
		ctx.String(
 | 
							ctx.String(
 | 
				
			||||||
			http.StatusBadRequest,
 | 
								http.StatusBadRequest,
 | 
				
			||||||
			fmt.Sprintf("Failed to decode id token claims"),
 | 
								"Failed to decode id token claims",
 | 
				
			||||||
		)
 | 
							)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
@ -272,6 +272,8 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) {
 | 
				
			|||||||
</html>
 | 
					</html>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
`, claims.Email)))
 | 
					`, claims.Email)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log.Error().
 | 
						log.Error().
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user