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 });
|
||||
if (provider.length && provider[0].priority > providerPriority) {
|
||||
providerType = provider[0].type;
|
||||
providerPriority = provider[0].priority;
|
||||
}
|
||||
}
|
||||
return parseInt(providerType);
|
||||
|
|
|
@ -39,7 +39,7 @@ angular.module('bit')
|
|||
free: true,
|
||||
image: 'authapp.png',
|
||||
displayOrder: 0,
|
||||
priority: 3
|
||||
priority: 1
|
||||
},
|
||||
{
|
||||
type: 3,
|
||||
|
@ -49,7 +49,7 @@ angular.module('bit')
|
|||
active: true,
|
||||
image: 'yubico.png',
|
||||
displayOrder: 1,
|
||||
priority: 1
|
||||
priority: 3
|
||||
},
|
||||
{
|
||||
type: 2,
|
||||
|
@ -69,7 +69,7 @@ angular.module('bit')
|
|||
active: true,
|
||||
image: 'fido.png',
|
||||
displayOrder: 3,
|
||||
priority: 0
|
||||
priority: 4
|
||||
},
|
||||
{
|
||||
type: 1,
|
||||
|
@ -79,7 +79,7 @@ angular.module('bit')
|
|||
active: true,
|
||||
image: 'gmail.png',
|
||||
displayOrder: 4,
|
||||
priority: 4
|
||||
priority: 0
|
||||
}
|
||||
],
|
||||
plans: {
|
||||
|
|
|
@ -6,8 +6,6 @@ var parentUrl = null,
|
|||
version = null;
|
||||
|
||||
function init() {
|
||||
info('initing');
|
||||
|
||||
if (!u2f.isSupported) {
|
||||
error('U2F is not supported in this browser.');
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue