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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user