Add and fix ifshort
This commit is contained in:
parent
9390348a65
commit
796072a5a4
6 changed files with 5 additions and 11 deletions
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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue