Fixing lint error
This commit is contained in:
parent
6da6ee7f84
commit
f5a6609b45
@ -187,15 +187,15 @@ func DecodeSessionState(v string, c *cookie.Cipher) (*SessionState, error) {
|
|||||||
} else {
|
} else {
|
||||||
// Backward compatibility with using unecrypted Email
|
// Backward compatibility with using unecrypted Email
|
||||||
if ss.Email != "" {
|
if ss.Email != "" {
|
||||||
decryptedEmail, err := c.Decrypt(ss.Email)
|
decryptedEmail, errEmail := c.Decrypt(ss.Email)
|
||||||
if err == nil {
|
if errEmail == nil {
|
||||||
ss.Email = decryptedEmail
|
ss.Email = decryptedEmail
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Backward compatibility with using unecrypted User
|
// Backward compatibility with using unecrypted User
|
||||||
if ss.User != "" {
|
if ss.User != "" {
|
||||||
decryptedUser, err := c.Decrypt(ss.User)
|
decryptedUser, errUser := c.Decrypt(ss.User)
|
||||||
if err == nil {
|
if errUser == nil {
|
||||||
ss.User = decryptedUser
|
ss.User = decryptedUser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user