siteserver / sscms.login

V7 用户登录插件

Home Page:https://sscms.com/docs/v7/official/login/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

插件安装后扫码登录无法跳转,禁止用户注册后,新用户扫码报错

awxtggg opened this issue · comments

您好,我安装了插件并进行了配置,但扫码登录时,代码运行到AuthController.GetRedirect.cs的return new GetRedirectResult后,页面上显示着RedirectUrl和Token后,就没了,我也不知道应该怎么调试才能让cms知道我已经登录成功。

return new GetRedirectResult
 {
     RedirectUrl = request.RedirectUrl,
    Token = token
 };

另外,当我关闭cms的用户设置中“允许新用户注册”后,如果是一个新用户扫码,就会报错“object reference not set to an instance of an object”,报错位置是44行userName = newUser.UserName;的位置。