Fix session_state type

This commit is contained in:
Brian Van Klaveren 2019-05-08 12:35:15 -07:00 committed by Joel Speed
parent 10e240c8bf
commit 3afb196a57
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB

View File

@ -203,14 +203,14 @@ func DecodeSessionState(v string, c *cookie.Cipher) (*SessionState, error) {
User: ss.User,
}
} else {
// Backward compatibility with using unecrypted Email
// Backward compatibility with using unencrypted Email
if ss.Email != "" {
decryptedEmail, errEmail := c.Decrypt(ss.Email)
if errEmail == nil {
ss.Email = decryptedEmail
}
}
// Backward compatibility with using unecrypted User
// Backward compatibility with using unencrypted User
if ss.User != "" {
decryptedUser, errUser := c.Decrypt(ss.User)
if errUser == nil {