Merge pull request #2459 from dpalou/MOBILE-3485
MOBILE-3485 login: Reset password input if password change forcedmain
commit
fe91f7e602
|
@ -249,6 +249,9 @@ export class CoreLoginCredentialsPage {
|
||||||
this.loginHelper.treatUserTokenError(siteUrl, error, username, password);
|
this.loginHelper.treatUserTokenError(siteUrl, error, username, password);
|
||||||
if (error.loggedout) {
|
if (error.loggedout) {
|
||||||
this.navCtrl.setRoot('CoreLoginSitesPage');
|
this.navCtrl.setRoot('CoreLoginSitesPage');
|
||||||
|
} else if (error.errorcode == 'forcepasswordchangenotice') {
|
||||||
|
// Reset password field.
|
||||||
|
this.credForm.controls.password.reset();
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
modal.dismiss();
|
modal.dismiss();
|
||||||
|
|
|
@ -221,6 +221,9 @@ export class CoreLoginReconnectPage {
|
||||||
|
|
||||||
if (error.loggedout) {
|
if (error.loggedout) {
|
||||||
this.cancel();
|
this.cancel();
|
||||||
|
} else if (error.errorcode == 'forcepasswordchangenotice') {
|
||||||
|
// Reset password field.
|
||||||
|
this.credForm.controls.password.reset();
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
modal.dismiss();
|
modal.dismiss();
|
||||||
|
|
Loading…
Reference in New Issue