mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:40:48 +00:00
add sessionId prefix
This commit is contained in:
parent
501d8a97f6
commit
c8da875f83
@ -332,8 +332,7 @@ func (manager *Manager) sessionID() (string, error) {
|
||||
if n != len(b) || err != nil {
|
||||
return "", fmt.Errorf("Could not successfully read from the system CSPRNG")
|
||||
}
|
||||
sid := hex.EncodeToString(b)
|
||||
return manager.config.SessionIDPrefix + sid, nil
|
||||
return manager.config.SessionIDPrefix + hex.EncodeToString(b), nil
|
||||
}
|
||||
|
||||
// Set cookie with https.
|
||||
|
Loading…
Reference in New Issue
Block a user