git.iko.soy/typeable/oauth2-proxy
on master help sign in
Fix session_state type
e881612Brian Van Klaveren
pkg/apis/sessions/session_state.go+2−2
@@ -203,14 +203,14 @@ func DecodeSessionState(v string, c *cookie.Cipher) (*SessionState, error) {
203 User: ss.User,
203 User: ss.User,
204 }
204 }
205 } else {
205 } else {
206− // Backward compatibility with using unecrypted Email
206+ // Backward compatibility with using unencrypted Email
207 if ss.Email != "" {
207 if ss.Email != "" {
208 decryptedEmail, errEmail := c.Decrypt(ss.Email)
208 decryptedEmail, errEmail := c.Decrypt(ss.Email)
209 if errEmail == nil {
209 if errEmail == nil {
210 ss.Email = decryptedEmail
210 ss.Email = decryptedEmail
211 }
211 }
212 }
212 }
213− // Backward compatibility with using unecrypted User
213+ // Backward compatibility with using unencrypted User
214 if ss.User != "" {
214 if ss.User != "" {
215 decryptedUser, errUser := c.Decrypt(ss.User)
215 decryptedUser, errUser := c.Decrypt(ss.User)
216 if errUser == nil {
216 if errUser == nil {