File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
share-oauth/src/main/resources/META-INF/extras/modules Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ if (typeof Extras == "undefined" || !Extras)
206
206
isAuthorized : function OAuth_isAuthorized ( )
207
207
{
208
208
// TODO check that the token is valid as well as that it just exists?
209
- return this . authData . oauth_token !== null && this . authData . oauth_token !== "" &&
210
- this . authData . oauth_token_secret !== null && this . authData . oauth_token_secret !== "" &&
209
+ return this . authData . oauth_token &&
210
+ this . authData . oauth_token_secret &&
211
211
! this . authData . oauth_callback_confirmed ;
212
212
} ,
213
213
@@ -774,11 +774,11 @@ if (typeof Extras == "undefined" || !Extras)
774
774
data . oauth_timestamp = Math . floor ( Date . now ( ) / 1000 ) ;
775
775
}
776
776
// Access token, if we have one and another token was not specified
777
- if ( typeof data . oauth_token === "undefined" && this . authData !== null && this . authData . oauth_token !== null )
777
+ if ( typeof data . oauth_token === "undefined" && this . authData && this . authData . oauth_token )
778
778
{
779
779
data . oauth_token = this . authData . oauth_token ;
780
780
}
781
- if ( typeof data . oauth_token_secret === "undefined" && this . authData !== null && this . authData . oauth_token_secret !== null )
781
+ if ( typeof data . oauth_token_secret === "undefined" && this . authData && this . authData . oauth_token_secret )
782
782
{
783
783
data . oauth_token_secret = this . authData . oauth_token_secret ;
784
784
}
You can’t perform that action at this time.
0 commit comments