MOBILE-2567 login: Fix forgot password avalaibility detection

main
Pau Ferrer Ocaña 2018-08-28 17:03:34 +02:00
parent 63b932910d
commit e97f87e021
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ export class CoreLoginHelperProvider {
return this.requestPasswordReset(siteUrl).then(() => {
return true;
}).catch((error) => {
return error.available == 1 || error.errorcode != 'invalidrecord';
return error.available == 1 || (error.errorcode != 'invalidrecord' && error.errorcode != '');
});
}