|
@@ -14,7 +14,6 @@ import com.simuwang.shiro.utils.UserUtils;
|
|
import com.smppw.common.pojo.ResultVo;
|
|
import com.smppw.common.pojo.ResultVo;
|
|
import com.smppw.common.pojo.enums.status.ResultCode;
|
|
import com.smppw.common.pojo.enums.status.ResultCode;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.Valid;
|
|
-import org.apache.shiro.authz.annotation.RequiresAuthentication;
|
|
|
|
import org.apache.shiro.subject.Subject;
|
|
import org.apache.shiro.subject.Subject;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -72,7 +71,6 @@ public class LoginController {
|
|
* 退出登录接口,登录用户才能访问
|
|
* 退出登录接口,登录用户才能访问
|
|
*/
|
|
*/
|
|
@SystemLog(value = "登出", type = SystemLog.Type.LOGOUT)
|
|
@SystemLog(value = "登出", type = SystemLog.Type.LOGOUT)
|
|
- @RequiresAuthentication
|
|
|
|
@PostMapping("/logout")
|
|
@PostMapping("/logout")
|
|
public ResultVo<Boolean> logout() {
|
|
public ResultVo<Boolean> logout() {
|
|
Subject subject = UserUtils.getSubject();
|
|
Subject subject = UserUtils.getSubject();
|
|
@@ -88,7 +86,6 @@ public class LoginController {
|
|
*
|
|
*
|
|
* @return 当前登录用户的角色权限信息
|
|
* @return 当前登录用户的角色权限信息
|
|
*/
|
|
*/
|
|
- @RequiresAuthentication
|
|
|
|
@GetMapping("/user-info")
|
|
@GetMapping("/user-info")
|
|
public UserInfoVO getUserInfo() {
|
|
public UserInfoVO getUserInfo() {
|
|
return this.loginService.getUserInfo();
|
|
return this.loginService.getUserInfo();
|
|
@@ -99,7 +96,6 @@ public class LoginController {
|
|
*
|
|
*
|
|
* @param command 修改密码对象
|
|
* @param command 修改密码对象
|
|
*/
|
|
*/
|
|
- @RequiresAuthentication
|
|
|
|
@SystemLog(value = "修改密码", type = SystemLog.Type.UPDATE)
|
|
@SystemLog(value = "修改密码", type = SystemLog.Type.UPDATE)
|
|
@PostMapping("update-pwd")
|
|
@PostMapping("update-pwd")
|
|
public boolean updatePwd(@Valid @RequestBody UserUpdatePwdCmd command) {
|
|
public boolean updatePwd(@Valid @RequestBody UserUpdatePwdCmd command) {
|