|
@@ -249,7 +249,7 @@ public class SysUserController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
- @RequestMapping(value = "/edit", method = RequestMethod.PUT)
|
|
|
+ @RequestMapping(value = "/edit")
|
|
|
public AjaxResult edit(@Validated @RequestBody SysUser user) {
|
|
|
// userService.checkUserAllowed(user);
|
|
|
// userService.checkUserDataScope(user.getId());
|
|
@@ -275,7 +275,7 @@ public class SysUserController extends BaseController {
|
|
|
*/
|
|
|
// @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
- @RequestMapping(value = "/updateUser", method = RequestMethod.PUT)
|
|
|
+ @RequestMapping(value = "/updateUser")
|
|
|
public AjaxResult updateUser(@RequestBody SysUserUpdate user) {
|
|
|
if (!StringUtils.isEmpty(user) && !StringUtils.isEmpty(user.getPassword())) {
|
|
|
boolean matches = user.getPassword().matches(PW_PATTERN);
|