adjust priorities
This commit is contained in:
parent
74d8e595f2
commit
afcc5ceb5b
|
@ -91,6 +91,7 @@ angular
|
||||||
var provider = $filter('filter')(constants.twoFactorProviderInfo, { type: keys[i], active: true });
|
var provider = $filter('filter')(constants.twoFactorProviderInfo, { type: keys[i], active: true });
|
||||||
if (provider.length && provider[0].priority > providerPriority) {
|
if (provider.length && provider[0].priority > providerPriority) {
|
||||||
providerType = provider[0].type;
|
providerType = provider[0].type;
|
||||||
|
providerPriority = provider[0].priority;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parseInt(providerType);
|
return parseInt(providerType);
|
||||||
|
|
|
@ -39,7 +39,7 @@ angular.module('bit')
|
||||||
free: true,
|
free: true,
|
||||||
image: 'authapp.png',
|
image: 'authapp.png',
|
||||||
displayOrder: 0,
|
displayOrder: 0,
|
||||||
priority: 3
|
priority: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 3,
|
type: 3,
|
||||||
|
@ -49,7 +49,7 @@ angular.module('bit')
|
||||||
active: true,
|
active: true,
|
||||||
image: 'yubico.png',
|
image: 'yubico.png',
|
||||||
displayOrder: 1,
|
displayOrder: 1,
|
||||||
priority: 1
|
priority: 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 2,
|
type: 2,
|
||||||
|
@ -69,7 +69,7 @@ angular.module('bit')
|
||||||
active: true,
|
active: true,
|
||||||
image: 'fido.png',
|
image: 'fido.png',
|
||||||
displayOrder: 3,
|
displayOrder: 3,
|
||||||
priority: 0
|
priority: 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 1,
|
type: 1,
|
||||||
|
@ -79,7 +79,7 @@ angular.module('bit')
|
||||||
active: true,
|
active: true,
|
||||||
image: 'gmail.png',
|
image: 'gmail.png',
|
||||||
displayOrder: 4,
|
displayOrder: 4,
|
||||||
priority: 4
|
priority: 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
plans: {
|
plans: {
|
||||||
|
|
|
@ -6,8 +6,6 @@ var parentUrl = null,
|
||||||
version = null;
|
version = null;
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
info('initing');
|
|
||||||
|
|
||||||
if (!u2f.isSupported) {
|
if (!u2f.isSupported) {
|
||||||
error('U2F is not supported in this browser.');
|
error('U2F is not supported in this browser.');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue