Fix OAuth2 login when no scope is defined
This commit is contained in:
committed by
Mohsen Azimi
parent
8a206e1e96
commit
bb1ebcef28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user