Fix OAuth2 login when no scope is defined

This commit is contained in:
Stefano Travelli
2015-02-27 09:36:29 -08:00
committed by Mohsen Azimi
parent 8a206e1e96
commit bb1ebcef28
+1 -1
View File
@@ -15,8 +15,8 @@ function handleLogin() {
var defs = auths;
for(key in defs) {
var auth = defs[key];
oauth2KeyName = key;
if(auth.type === 'oauth2' && auth.scopes) {
oauth2KeyName = key;
var scope;
if(Array.isArray(auth.scopes)) {
// 1.2 support