Make error message more clear
This commit is contained in:
parent
58af44bdd6
commit
18ee7b2fac
@ -125,7 +125,7 @@ func createSessionCookie(app *app.App, w http.ResponseWriter, username string) (
|
|||||||
buff := make([]byte, int(math.Ceil(float64(64)/2)))
|
buff := make([]byte, int(math.Ceil(float64(64)/2)))
|
||||||
_, err := rand.Read(buff)
|
_, err := rand.Read(buff)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error creating random buffer for token value")
|
log.Println("Error creating random buffer for session token value")
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user