feat: 登录部分2
This commit is contained in:
@@ -175,7 +175,7 @@ public class SysLoginController {
|
|||||||
|| "::1".equals(serverName);
|
|| "::1".equals(serverName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@At(value = "/platform/sso/login", top = true)
|
@At(value = {"/platform/sso/login", "/sso/login"}, top = true)
|
||||||
@Ok("re")
|
@Ok("re")
|
||||||
@ApiOperation("用户cas登录统一入口")
|
@ApiOperation("用户cas登录统一入口")
|
||||||
public String ssoLogin(HttpSession httpSession, HttpServletRequest request, HttpServletResponse response) {
|
public String ssoLogin(HttpSession httpSession, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ public class SysUserServiceImpl extends BaseServiceImpl<Sys_user> implements Sys
|
|||||||
String decodePwd = Base64Decoder.decodeStr(passowrd);
|
String decodePwd = Base64Decoder.decodeStr(passowrd);
|
||||||
String hashedPassword = PwdUtil.getPassword(decodePwd, user.getSalt());
|
String hashedPassword = PwdUtil.getPassword(decodePwd, user.getSalt());
|
||||||
if (!Strings.sNull(hashedPassword).equalsIgnoreCase(user.getPassword())) {
|
if (!Strings.sNull(hashedPassword).equalsIgnoreCase(user.getPassword())) {
|
||||||
if (Globals.sso || !"dev".equalsIgnoreCase(conf.get("nutz.profiles.active"))) {
|
if (Globals.sso) {
|
||||||
throw new BaseException("用户名或者密码不正确");
|
throw new BaseException("用户名或者密码不正确");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,12 +34,12 @@ sdk:
|
|||||||
appSecret: a65cec4fb69980bd88258fc8433a3eef
|
appSecret: a65cec4fb69980bd88258fc8433a3eef
|
||||||
redirectUri: /platform/wx/oauth2/callback
|
redirectUri: /platform/wx/oauth2/callback
|
||||||
cas:
|
cas:
|
||||||
enable: false
|
enable: true
|
||||||
server-url-prefix: https://i.zjnu.edu.cn/cas
|
server-url-prefix: https://authserver.zjnu.edu.cn/authserver
|
||||||
server-login-url: https://i.zjnu.edu.cn/cas/login
|
server-login-url: https://authserver.zjnu.edu.cn/authserver/login
|
||||||
qi-wx-server-login-url: httos:/cas.whcp.eou.cn/lyuapServer/wechatauz/wxAuthRedirect
|
qi-wx-server-login-url: httos:/cas.whcp.eou.cn/lyuapServer/wechatauz/wxAuthRedirect
|
||||||
client-host-url: https://zhgh.zjnu.edu.cn
|
client-host-url: https://lxy.zjnu.edu.cn
|
||||||
client-call-back-url: /platform/sso/login
|
client-call-back-url: /sso/login
|
||||||
validation-type: cas
|
validation-type: cas
|
||||||
minio:
|
minio:
|
||||||
accessKey: minioadmin
|
accessKey: minioadmin
|
||||||
|
|||||||
Reference in New Issue
Block a user