|
|
@@ -127,14 +127,9 @@ public class UserController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/emailEnable", method = RequestMethod.GET)
|
|
|
public ResponseEntity<Boolean> emailEnable(String email) {
|
|
|
- if (email == null) {
|
|
|
- throw new IllegalOperatorException("邮箱不能为空");
|
|
|
- } else {
|
|
|
- HttpHeaders headers = new HttpHeaders();
|
|
|
- headers.add("Content-Type", "application/text; charset=utf-8");
|
|
|
- return new ResponseEntity<Boolean>(userService.isEmailUseable(email.replaceAll("\\s*", "")), headers,
|
|
|
- HttpStatus.OK);
|
|
|
- }
|
|
|
+ HttpHeaders headers = new HttpHeaders();
|
|
|
+ headers.add("Content-Type", "application/text; charset=utf-8");
|
|
|
+ return new ResponseEntity<>(Boolean.TRUE, headers, HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
/**
|