adjust priorities

This commit is contained in:
Kyle Spearrin 2017-06-26 15:32:34 -04:00
parent 74d8e595f2
commit afcc5ceb5b
3 changed files with 5 additions and 6 deletions

View File

@ -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);

View File

@ -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: {

View File

@ -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;