mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
Merge pull request #829 from bitwarden/verify-email-for-send
Require user to verify email to use file Send
This commit is contained in:
commit
70aef37f77
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 78d40d9f18c23a185465d5fca238b258b2848193
|
Subproject commit 85893f5f9efb201a45c5af54896a82e6eb185108
|
@ -217,6 +217,15 @@ export class AppComponent implements OnInit {
|
|||||||
this.openModal<PremiumComponent>(PremiumComponent, this.premiumRef);
|
this.openModal<PremiumComponent>(PremiumComponent, this.premiumRef);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'emailVerificationRequired':
|
||||||
|
const emailVerificationConfirmed = await this.platformUtilsService.showDialog(
|
||||||
|
this.i18nService.t('emailVerificationRequiredDesc'),
|
||||||
|
this.i18nService.t('emailVerificationRequired'),
|
||||||
|
this.i18nService.t('learnMore'), this.i18nService.t('cancel'));
|
||||||
|
if (emailVerificationConfirmed) {
|
||||||
|
this.platformUtilsService.launchUri('https://bitwarden.com/help/article/create-bitwarden-account/');
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'syncVault':
|
case 'syncVault':
|
||||||
try {
|
try {
|
||||||
await this.syncService.fullSync(true, true);
|
await this.syncService.fullSync(true, true);
|
||||||
|
@ -8,6 +8,7 @@ import { MessagingService } from 'jslib/abstractions/messaging.service';
|
|||||||
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
||||||
import { PolicyService } from 'jslib/abstractions/policy.service';
|
import { PolicyService } from 'jslib/abstractions/policy.service';
|
||||||
import { SendService } from 'jslib/abstractions/send.service';
|
import { SendService } from 'jslib/abstractions/send.service';
|
||||||
|
import { TokenService } from 'jslib/abstractions/token.service';
|
||||||
import { UserService } from 'jslib/abstractions/user.service';
|
import { UserService } from 'jslib/abstractions/user.service';
|
||||||
|
|
||||||
import { AddEditComponent as BaseAddEditComponent } from 'jslib/angular/components/send/add-edit.component';
|
import { AddEditComponent as BaseAddEditComponent } from 'jslib/angular/components/send/add-edit.component';
|
||||||
@ -20,9 +21,9 @@ export class AddEditComponent extends BaseAddEditComponent {
|
|||||||
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
|
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
|
||||||
environmentService: EnvironmentService, datePipe: DatePipe,
|
environmentService: EnvironmentService, datePipe: DatePipe,
|
||||||
sendService: SendService, userService: UserService,
|
sendService: SendService, userService: UserService,
|
||||||
messagingService: MessagingService, policyService: PolicyService) {
|
messagingService: MessagingService, policyService: PolicyService, tokenService: TokenService) {
|
||||||
super(i18nService, platformUtilsService, environmentService,
|
super(i18nService, platformUtilsService, environmentService,
|
||||||
datePipe, sendService, userService, messagingService, policyService);
|
datePipe, sendService, userService, messagingService, policyService, tokenService);
|
||||||
}
|
}
|
||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
|
@ -1662,5 +1662,11 @@
|
|||||||
},
|
},
|
||||||
"sendOptionsPolicyInEffect": {
|
"sendOptionsPolicyInEffect": {
|
||||||
"message": "One or more organization policies are affecting your Send options."
|
"message": "One or more organization policies are affecting your Send options."
|
||||||
|
},
|
||||||
|
"emailVerificationRequired": {
|
||||||
|
"message": "Email Verification Required"
|
||||||
|
},
|
||||||
|
"emailVerificationRequiredDesc": {
|
||||||
|
"message": "You must verify your email to use this feature."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user