|
|
@@ -53,6 +53,11 @@ public class LoginController extends BaseController {
|
|
|
*/
|
|
|
private static final String LOGIN_CAPTCHA = "loginCaptcha";
|
|
|
|
|
|
+ /**
|
|
|
+ * 优软云首页地址
|
|
|
+ */
|
|
|
+ private static final String HOME_PAGE = "https://www.ubtob.com/";
|
|
|
+
|
|
|
@Autowired
|
|
|
private AppService appService;
|
|
|
|
|
|
@@ -88,12 +93,17 @@ public class LoginController extends BaseController {
|
|
|
}
|
|
|
|
|
|
// 校验appId,appId为空的话默认为sso
|
|
|
- appId = StringUtils.isEmpty(appId) ? "sso" : appId;
|
|
|
+ appId = StringUtils.isEmpty(appId) ? SSOHelper.getSSOService().getConfig().getAppName() : appId;
|
|
|
App app = appService.findOne(appId);
|
|
|
if (app == null) {
|
|
|
return error("应用id不存在");
|
|
|
}
|
|
|
|
|
|
+ // 校验returnUrl,为空默认为优软云
|
|
|
+ if (StringUtils.isEmpty(returnUrl)) {
|
|
|
+ returnUrl = HOME_PAGE;
|
|
|
+ }
|
|
|
+
|
|
|
// 获取用户基本信息
|
|
|
User user = userService.findByUsername(username);
|
|
|
if (user == null) {
|