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(() => {

View File

@ -2106,6 +2106,9 @@
"verifyEmailDesc": {
"message": "Verify your account's email address to unlock access to all features."
},
"verifyEmailFirst": {
"message": "Your account's email address first must be verified."
},
"checkInboxForVerification": {
"message": "Check your email inbox for a verification link."
},