|
@@ -91,9 +91,9 @@ public class SysLoginController {
|
|
|
// 生成令牌
|
|
|
String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(),
|
|
|
loginBody.getUuid());
|
|
|
- if (tokenService.getLoginUserIsAdminByToken(token)) {
|
|
|
- return AjaxResult.error("用户不存在!");
|
|
|
- }
|
|
|
+// if (tokenService.getLoginUserIsAdminByToken(token)) {
|
|
|
+// return AjaxResult.error("用户不存在!");
|
|
|
+// }
|
|
|
// 校验租户是否过期
|
|
|
String checkTenantExpirationTimeMsg = loginService.checkTenantExpirationTime(loginBody);
|
|
|
if (!checkTenantExpirationTimeMsg.isEmpty()) {
|
|
@@ -110,7 +110,7 @@ public class SysLoginController {
|
|
|
* @param loginBody 登录信息
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- @PostMapping("/loginadmin")
|
|
|
+ @PostMapping("/loginAdmin")
|
|
|
public AjaxResult loginadmin(@Valid @RequestBody LoginBody loginBody, BindingResult bindingResult) {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return AjaxResult.error(bindingResult.getFieldError().getDefaultMessage());
|