auth

Paddy 2014-11-11 Parent:ff7bf5bd0df3 Child:6fac0d6d6ca3

75:8bc51f76e717 Browse Files

Typo. We need to actually compare the error to ErrInvalidSession.

oauth2.go

     1.1 --- a/oauth2.go	Tue Nov 11 21:29:10 2014 -0500
     1.2 +++ b/oauth2.go	Tue Nov 11 21:29:52 2014 -0500
     1.3 @@ -107,7 +107,7 @@
     1.4  func GetGrantHandler(w http.ResponseWriter, r *http.Request, context Context) {
     1.5  	session, err := checkCookie(r, context)
     1.6  	if err != nil {
     1.7 -		if err == ErrNoSession || ErrInvalidSession {
     1.8 +		if err == ErrNoSession || err = ErrInvalidSessior {
     1.9  			// TODO(paddy): redirect to login screen
    1.10  			//return
    1.11  		}