|
@@ -66,6 +66,7 @@ public class ShiroController {
|
|
|
@RequestMapping(value = "changePassword", method = RequestMethod.POST)
|
|
|
public JsonModel changePassword(@RequestBody CmMallAdminUser adminUser, HttpServletRequest httpRequest) {
|
|
|
JsonModel jsonModel = JsonModel.newInstance();
|
|
|
+ if (adminUser.getPassword().equals(adminUser.getOldPassword())) return jsonModel.error("新密码不能与老密码一样");
|
|
|
String token = httpRequest.getHeader("token");
|
|
|
String decoded = TokenEncryptUtils.decoded(token);
|
|
|
String[] tokens = decoded.split("#,#");
|