登录接口实现
This commit is contained in:
		@ -191,12 +191,14 @@ export class UserLoginComponent implements OnInit, OnDestroy {
 | 
			
		||||
      // this.userSrv.loginByCaptcha(this.captchaSF.value.phone, this.captchaSF.value.smsCode, this.captchaSF.value.sc);
 | 
			
		||||
    } else {
 | 
			
		||||
      this.accountSF.validator({ emitError: true });
 | 
			
		||||
      console.log(this.accountSF.value);
 | 
			
		||||
      
 | 
			
		||||
      if (!this.accountSF.valid) {
 | 
			
		||||
        return;
 | 
			
		||||
        // this.userSrv.loginByAccount(this.accountSF.value.username, this.accountSF.value.password, this.accountSF.value.sc);
 | 
			
		||||
      }
 | 
			
		||||
      this.userSrv.loginByAccount(this.accountSF.value.username, this.accountSF.value.password);
 | 
			
		||||
    }
 | 
			
		||||
    this.router.navigateByUrl('/');
 | 
			
		||||
    // this.router.navigateByUrl('/');
 | 
			
		||||
    /*  if (!this.accountSF.valid && !this.captchaSF.valid) {
 | 
			
		||||
       return;
 | 
			
		||||
     }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user