| | |
| | | package com.ltkj.web.controller.system; |
| | | |
| | | import com.ltkj.common.utils.sign.RsaUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | LoginUser loginUser = getLoginUser(); |
| | | String userName = loginUser.getUsername(); |
| | | String password = loginUser.getPassword(); |
| | | try { |
| | | oldPassword = RsaUtils.decryptByPrivateKey(oldPassword); |
| | | newPassword = RsaUtils.decryptByPrivateKey(newPassword); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | if(userName.equals("10001")){ |
| | | oldPassword=userName+oldPassword; |
| | | } |