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 });
if (provider.length && provider[0].priority > providerPriority) {
providerType = provider[0].type;
providerPriority = provider[0].priority;
}
}
return parseInt(providerType);

View File

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

View File

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