Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载了项目,能正常启动,到登录画面,但是登录失败,好像校验有问题呢 #21

Open
BobSadan opened this issue Jun 24, 2020 · 2 comments

Comments

@BobSadan
Copy link

登录失败,好像校验有问题呢

@shmily0u
Copy link

shmily0u commented Jul 3, 2020

登入本来有调用后端验证的,注释掉了,但是代码没改, 所以登入不上的直接跳到主页呗 或者把这块代码改一下就可以

@ZD-code
Copy link

ZD-code commented Mar 25, 2021

login(): void {
    if (this.verifyCode.fcShowError === 'N') {
      // `if (this.loginValid(this.userId, this.password)) {`
        this.hasError = false;
        CacheService.setS('userinfo', { USERCODE: 'admin' });
        CacheService.setS('token', 'ab2be4ef08c0418bab13a6a88c9772e7');
        if (this.remember) {
          CommonService.addCookie('userName', 'admin', 0);
        } else {
          CommonService.removeCookie('userName');
        }
        console.log(`/ + ${environment.pid.toLocaleLowerCase()} + /home`);
        this.router.navigate([`/${environment.pid.toLocaleLowerCase()}/home`]);
      // } else {
        // this.hasError = true;
      // }
    }
  }

this.loginValid() 这个判断注释掉就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants