check for email verified on premium license upload
This commit is contained in:
parent
f4127a575b
commit
a5246df3ed
|
@ -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(() => {
|
||||
|
|
|
@ -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."
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue