mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
124 lines
3.9 KiB
JavaScript
124 lines
3.9 KiB
JavaScript
angular.module('bit')
|
|
.constant('constants', {
|
|
rememberedEmailCookieName: 'bit.rememberedEmail',
|
|
encType: {
|
|
AesCbc256_B64: 0,
|
|
AesCbc128_HmacSha256_B64: 1,
|
|
AesCbc256_HmacSha256_B64: 2,
|
|
Rsa2048_OaepSha256_B64: 3,
|
|
Rsa2048_OaepSha1_B64: 4,
|
|
Rsa2048_OaepSha256_HmacSha256_B64: 5,
|
|
Rsa2048_OaepSha1_HmacSha256_B64: 6
|
|
},
|
|
orgUserType: {
|
|
owner: 0,
|
|
admin: 1,
|
|
user: 2
|
|
},
|
|
orgUserStatus: {
|
|
invited: 0,
|
|
accepted: 1,
|
|
confirmed: 2
|
|
},
|
|
twoFactorProvider: {
|
|
u2f: 4,
|
|
yubikey: 3,
|
|
duo: 2,
|
|
authenticator: 0,
|
|
email: 1,
|
|
remember: 5
|
|
},
|
|
twoFactorProviderInfo: [
|
|
{
|
|
type: 0,
|
|
name: 'Authenticator App',
|
|
description: 'Use an authenticator app (such as Authy or Google Authenticator) to generate time-based ' +
|
|
'verification codes.',
|
|
enabled: false,
|
|
active: true,
|
|
free: true,
|
|
image: 'authapp.png',
|
|
displayOrder: 0,
|
|
priority: 3
|
|
},
|
|
{
|
|
type: 3,
|
|
name: 'YubiKey OTP Security Key',
|
|
description: 'Use a YubiKey to access your account. Works with YubiKey 4, 4 Nano, 4C, and NEO devices.',
|
|
enabled: false,
|
|
active: true,
|
|
image: 'yubico.png',
|
|
displayOrder: 1,
|
|
priority: 1
|
|
},
|
|
{
|
|
type: 2,
|
|
name: 'Duo',
|
|
description: 'Verify with Duo Security using the Duo Mobile app, SMS, phone call, or U2F security key.',
|
|
enabled: false,
|
|
active: true,
|
|
image: 'duo.png',
|
|
displayOrder: 2,
|
|
priority: 2
|
|
},
|
|
{
|
|
type: 4,
|
|
name: 'FIDO U2F Security Key',
|
|
description: 'Use any FIDO U2F enabled security key to access your account.',
|
|
enabled: false,
|
|
active: true,
|
|
image: 'fido.png',
|
|
displayOrder: 3,
|
|
priority: 0
|
|
},
|
|
{
|
|
type: 1,
|
|
name: 'Email',
|
|
description: 'Verification codes will be emailed to you.',
|
|
enabled: false,
|
|
active: true,
|
|
image: 'gmail.png',
|
|
displayOrder: 4,
|
|
priority: 4
|
|
}
|
|
],
|
|
plans: {
|
|
free: {
|
|
basePrice: 0,
|
|
noAdditionalSeats: true,
|
|
noPayment: true,
|
|
upgradeSortOrder: -1
|
|
},
|
|
personal: {
|
|
basePrice: 1,
|
|
annualBasePrice: 12,
|
|
baseSeats: 5,
|
|
seatPrice: 1,
|
|
annualSeatPrice: 12,
|
|
maxAdditionalSeats: 5,
|
|
annualPlanType: 'personalAnnually',
|
|
upgradeSortOrder: 1
|
|
},
|
|
teams: {
|
|
basePrice: 5,
|
|
annualBasePrice: 60,
|
|
monthlyBasePrice: 8,
|
|
baseSeats: 5,
|
|
seatPrice: 2,
|
|
annualSeatPrice: 24,
|
|
monthlySeatPrice: 2.5,
|
|
monthPlanType: 'teamsMonthly',
|
|
annualPlanType: 'teamsAnnually',
|
|
upgradeSortOrder: 2
|
|
},
|
|
enterprise: {
|
|
seatPrice: 3,
|
|
annualSeatPrice: 36,
|
|
monthlySeatPrice: 4,
|
|
monthPlanType: 'enterpriseMonthly',
|
|
annualPlanType: 'enterpriseAnnually',
|
|
upgradeSortOrder: 3
|
|
}
|
|
}
|
|
});
|