Fix session_state type
This commit is contained in:
parent
10e240c8bf
commit
3afb196a57
@ -203,14 +203,14 @@ func DecodeSessionState(v string, c *cookie.Cipher) (*SessionState, error) {
|
|||||||
User: ss.User,
|
User: ss.User,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Backward compatibility with using unecrypted Email
|
// Backward compatibility with using unencrypted Email
|
||||||
if ss.Email != "" {
|
if ss.Email != "" {
|
||||||
decryptedEmail, errEmail := c.Decrypt(ss.Email)
|
decryptedEmail, errEmail := c.Decrypt(ss.Email)
|
||||||
if errEmail == nil {
|
if errEmail == nil {
|
||||||
ss.Email = decryptedEmail
|
ss.Email = decryptedEmail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Backward compatibility with using unecrypted User
|
// Backward compatibility with using unencrypted User
|
||||||
if ss.User != "" {
|
if ss.User != "" {
|
||||||
decryptedUser, errUser := c.Decrypt(ss.User)
|
decryptedUser, errUser := c.Decrypt(ss.User)
|
||||||
if errUser == nil {
|
if errUser == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user