|
@@ -112,8 +112,8 @@ public class UserController {
|
|
|
@PreAuthorize("@el.check('user:add')")
|
|
|
public ResponseEntity<Object> create(@Validated @RequestBody User resources) throws Exception {
|
|
|
checkLevel(resources);
|
|
|
- resources.setPassword(RsaUtils.encryptByPublicKey(RsaProperties.publicKey, resources.getOrgPassword()));
|
|
|
-// passwordEncoder.encode(resources.getOrgPassword());
|
|
|
+ //resources.setPassword(RsaUtils.encryptByPublicKey(RsaProperties.publicKey, resources.getOrgPassword()));
|
|
|
+ resources.setPassword(passwordEncoder.encode(resources.getOrgPassword()));
|
|
|
userService.create(resources);
|
|
|
return new ResponseEntity<>(HttpStatus.CREATED);
|
|
|
}
|