Fix OAuth2 login when no scope is defined

This commit is contained in:
Stefano Travelli
2015-02-12 10:27:42 +01:00
parent 384ffb7e1f
commit a5f1eeae04

View File

@@ -14,8 +14,8 @@ function handleLogin() {
var defs = auths;
for(key in defs) {
var auth = defs[key];
if(auth.type === 'oauth2' && auth.scopes) {
oauth2KeyName = key;
if(auth.type === 'oauth2' && auth.scopes) {
var scope;
if(Array.isArray(auth.scopes)) {
// 1.2 support