MOBILE-2915 login: Fix signup errors not displayed
parent
63cfc0604a
commit
ba27f75324
|
@ -261,7 +261,8 @@ export class CoreLoginEmailSignupPage {
|
|||
(fieldsData) => {
|
||||
params.customprofilefields = fieldsData;
|
||||
|
||||
this.wsProvider.callAjax('auth_email_signup_user', params, { siteUrl: this.siteUrl }).then((result) => {
|
||||
return this.wsProvider.callAjax('auth_email_signup_user', params, { siteUrl: this.siteUrl });
|
||||
}).then((result) => {
|
||||
if (result.success) {
|
||||
// Show alert and ho back.
|
||||
const message = this.translate.instant('core.login.emailconfirmsent', { $a: params.email });
|
||||
|
@ -279,7 +280,6 @@ export class CoreLoginEmailSignupPage {
|
|||
this.domUtils.showErrorModal('core.login.usernotaddederror', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}).catch((error) => {
|
||||
this.domUtils.showErrorModalDefault(error, 'core.login.usernotaddederror', true);
|
||||
}).finally(() => {
|
||||
|
|
Loading…
Reference in New Issue