update menu with two-step login
This commit is contained in:
parent
6fc990c3b0
commit
88ce76a1d5
|
@ -687,5 +687,11 @@
|
||||||
},
|
},
|
||||||
"invalidMasterPassword": {
|
"invalidMasterPassword": {
|
||||||
"message": "Invalid master password"
|
"message": "Invalid master password"
|
||||||
|
},
|
||||||
|
"twoStepLoginConfirmation": {
|
||||||
|
"message": "Two-step login makes your account more secure by requiring you to verify your login with another device such as a security key, authenticator app, SMS, phone call, or email. Two-step login can be enabled on the bitwarden.com web vault. Do you want to visit the website now?"
|
||||||
|
},
|
||||||
|
"twoStepLogin": {
|
||||||
|
"message": "Two-step Login"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,7 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('addNewLogin'),
|
label: this.i18nService.t('addNewLogin'),
|
||||||
click: () => {
|
click: () => self.send('newLogin'),
|
||||||
self.send('newLogin');
|
|
||||||
},
|
|
||||||
accelerator: 'CmdOrCtrl+N',
|
accelerator: 'CmdOrCtrl+N',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -34,30 +32,22 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('typeLogin'),
|
label: this.i18nService.t('typeLogin'),
|
||||||
click: () => {
|
click: () => self.send('newLogin'),
|
||||||
self.send('newLogin');
|
|
||||||
},
|
|
||||||
accelerator: 'Alt+L',
|
accelerator: 'Alt+L',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('typeCard'),
|
label: this.i18nService.t('typeCard'),
|
||||||
click: () => {
|
click: () => self.send('newCard'),
|
||||||
self.send('newCard');
|
|
||||||
},
|
|
||||||
accelerator: 'Alt+C',
|
accelerator: 'Alt+C',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('typeIdentity'),
|
label: this.i18nService.t('typeIdentity'),
|
||||||
click: () => {
|
click: () => self.send('newIdentity'),
|
||||||
self.send('newIdentity');
|
|
||||||
},
|
|
||||||
accelerator: 'Alt+I',
|
accelerator: 'Alt+I',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('typeSecureNote'),
|
label: this.i18nService.t('typeSecureNote'),
|
||||||
click: () => {
|
click: () => self.send('newSecureNote'),
|
||||||
self.send('newSecureNote');
|
|
||||||
},
|
|
||||||
accelerator: 'Alt+S',
|
accelerator: 'Alt+S',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -65,28 +55,20 @@ export class MenuMain {
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('addNewFolder'),
|
label: this.i18nService.t('addNewFolder'),
|
||||||
click: () => {
|
click: () => self.send('newFolder'),
|
||||||
self.send('newFolder');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('settings'),
|
label: this.i18nService.t('settings'),
|
||||||
click: () => {
|
click: () => self.send('openSettings'),
|
||||||
self.send('openSettings');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('syncVault'),
|
label: this.i18nService.t('syncVault'),
|
||||||
click: () => {
|
click: () => self.send('syncVault'),
|
||||||
self.send('syncVault');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('lockNow'),
|
label: this.i18nService.t('lockNow'),
|
||||||
click: () => {
|
click: () => self.send('lockVault'),
|
||||||
self.send('lockVault');
|
|
||||||
},
|
|
||||||
accelerator: 'CmdOrCtrl+L',
|
accelerator: 'CmdOrCtrl+L',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -108,16 +90,12 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('passwordGenerator'),
|
label: this.i18nService.t('passwordGenerator'),
|
||||||
click: () => {
|
click: () => self.send('openPasswordGenerator'),
|
||||||
self.send('openPasswordGenerator');
|
|
||||||
},
|
|
||||||
accelerator: 'CmdOrCtrl+G',
|
accelerator: 'CmdOrCtrl+G',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('searchVault'),
|
label: this.i18nService.t('searchVault'),
|
||||||
click: () => {
|
click: () => self.send('focusSearch'),
|
||||||
self.send('focusSearch');
|
|
||||||
},
|
|
||||||
accelerator: 'CmdOrCtrl+F',
|
accelerator: 'CmdOrCtrl+F',
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
|
@ -137,9 +115,7 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('premiumMembership'),
|
label: this.i18nService.t('premiumMembership'),
|
||||||
click: () => {
|
click: () => self.send('premiumMembership'),
|
||||||
self.send('premiumMembership');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('changeMasterPass'),
|
label: this.i18nService.t('changeMasterPass'),
|
||||||
|
@ -173,6 +149,22 @@ export class MenuMain {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: this.i18nService.t('twoStepLogin'),
|
||||||
|
click: () => {
|
||||||
|
const result = dialog.showMessageBox(self.windowMain.win, {
|
||||||
|
title: self.i18nService.t('twoStepLogin'),
|
||||||
|
message: self.i18nService.t('twoStepLoginConfirmation'),
|
||||||
|
buttons: [self.i18nService.t('yes'), self.i18nService.t('no')],
|
||||||
|
cancelId: 1,
|
||||||
|
defaultId: 0,
|
||||||
|
noLink: true,
|
||||||
|
});
|
||||||
|
if (result === 0) {
|
||||||
|
shell.openExternal('https://vault.bitwarden.com');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('logOut'),
|
label: this.i18nService.t('logOut'),
|
||||||
|
@ -204,21 +196,15 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('emailUs'),
|
label: this.i18nService.t('emailUs'),
|
||||||
click: () => {
|
click: () => shell.openExternal('mailTo:hello@bitwarden.com'),
|
||||||
shell.openExternal('mailTo:hello@bitwarden.com');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('visitOurWebsite'),
|
label: this.i18nService.t('visitOurWebsite'),
|
||||||
click: () => {
|
click: () => shell.openExternal('https://bitwarden.com/contact'),
|
||||||
shell.openExternal('https://bitwarden.com/contact');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('fileBugReport'),
|
label: this.i18nService.t('fileBugReport'),
|
||||||
click: () => {
|
click: () => shell.openExternal('https://github.com/bitwarden/desktop'),
|
||||||
shell.openExternal('https://github.com/bitwarden/desktop');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
|
@ -226,42 +212,30 @@ export class MenuMain {
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('blog'),
|
label: this.i18nService.t('blog'),
|
||||||
click: () => {
|
click: () => shell.openExternal('https://blog.bitwarden.com'),
|
||||||
shell.openExternal('https://blog.bitwarden.com');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Twitter',
|
label: 'Twitter',
|
||||||
click: () => {
|
click: () => shell.openExternal('https://twitter.com/bitwarden_app'),
|
||||||
shell.openExternal('https://twitter.com/bitwarden_app');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Facebook',
|
label: 'Facebook',
|
||||||
click: () => {
|
click: () => shell.openExternal('https://www.facebook.com/bitwarden/'),
|
||||||
shell.openExternal('https://www.facebook.com/bitwarden/');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Google+',
|
label: 'Google+',
|
||||||
click: () => {
|
click: () => shell.openExternal('https://plus.google.com/114869903467947368993'),
|
||||||
shell.openExternal('https://plus.google.com/114869903467947368993');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'GitHub',
|
label: 'GitHub',
|
||||||
click: () => {
|
click: () => shell.openExternal('https://github.com/bitwarden'),
|
||||||
shell.openExternal('https://github.com/bitwarden');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ type: 'separator' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('goToWebVault'),
|
label: this.i18nService.t('goToWebVault'),
|
||||||
click: () => {
|
click: () => shell.openExternal('https://vault.bitwarden.com'),
|
||||||
shell.openExternal('https://vault.bitwarden.com');
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18nService.t('getMobileApp'),
|
label: this.i18nService.t('getMobileApp'),
|
||||||
|
|
Loading…
Reference in New Issue