forked from EVOgeek/Vmeda.Online
		
	MOBILE-3485 login: Reset password input if password change forced
This commit is contained in:
		
							parent
							
								
									b338055f31
								
							
						
					
					
						commit
						0a31ebd2e5
					
				| @ -249,6 +249,9 @@ export class CoreLoginCredentialsPage { | ||||
|             this.loginHelper.treatUserTokenError(siteUrl, error, username, password); | ||||
|             if (error.loggedout) { | ||||
|                 this.navCtrl.setRoot('CoreLoginSitesPage'); | ||||
|             } else if (error.errorcode == 'forcepasswordchangenotice') { | ||||
|                 // Reset password field.
 | ||||
|                 this.credForm.controls.password.reset(); | ||||
|             } | ||||
|         }).finally(() => { | ||||
|             modal.dismiss(); | ||||
|  | ||||
| @ -221,6 +221,9 @@ export class CoreLoginReconnectPage { | ||||
| 
 | ||||
|             if (error.loggedout) { | ||||
|                 this.cancel(); | ||||
|             } else if (error.errorcode == 'forcepasswordchangenotice') { | ||||
|                 // Reset password field.
 | ||||
|                 this.credForm.controls.password.reset(); | ||||
|             } | ||||
|         }).finally(() => { | ||||
|             modal.dismiss(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user