mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-16 11:51:21 +00:00
Add and fix ifshort
This commit is contained in:
3
oidc.go
3
oidc.go
@@ -68,8 +68,7 @@ func (h *Headscale) RegisterOIDC(c *gin.Context) {
|
||||
}
|
||||
|
||||
b := make([]byte, 16)
|
||||
_, err := rand.Read(b)
|
||||
if err != nil {
|
||||
if _, err := rand.Read(b); err != nil {
|
||||
log.Error().Msg("could not read 16 bytes from rand")
|
||||
c.String(http.StatusInternalServerError, "could not read 16 bytes from rand")
|
||||
|
||||
|
Reference in New Issue
Block a user