Fix session_state type
This commit is contained in:
		
							parent
							
								
									1355c1ce30
								
							
						
					
					
						commit
						e881612ea6
					
				|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue