| | |
| | | name: this.userName.value, |
| | | time: +new Date |
| | | }); |
| | | this.validateError = true; |
| | | this.validateError = {}; |
| | | this.router.navigate(['/']); |
| | | } |
| | | }, |
| | |
| | | console.log(xmlHttpRequest.response); |
| | | const response = JSON.parse(xmlHttpRequest.response); |
| | | if(response.status == 401&&response.errorCode==10){ |
| | | this.validateError = true; |
| | | this.validateError["password_incorrect"]=true; |
| | | this.loading = false; |
| | | } else if(response.status == 401&&response.errorCode==12) { |
| | | this.validateError["account_expired"]=true; |
| | | this.loading = false; |
| | | } |
| | | } |
| | | } |
| | |
| | | ); |
| | | |
| | | } |
| | | public validateError:boolean; |
| | | public validateError:{[s:string]:boolean} = {}; |
| | | // region: social |
| | | |
| | | open(type: string, openType: SocialOpenType = 'href') { |