1
0
mirror of https://github.com/bitwarden/web synced 2025-12-14 23:33:16 +00:00

check for email verified on premium license upload

This commit is contained in:
Kyle Spearrin
2018-07-19 22:04:16 -04:00
parent f4127a575b
commit a5246df3ed
2 changed files with 9 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ export class PremiumComponent implements OnInit {
try {
if (this.selfHosted) {
if (!this.tokenService.getEmailVerified()) {
this.toasterService.popAsync('error', this.i18nService.t('errorOccurred'),
this.i18nService.t('verifyEmailFirst'));
return;
}
const fd = new FormData();
fd.append('license', files[0]);
this.formPromise = this.apiService.postAccountLicense(fd).then(() => {