|
|
@ -29,6 +29,8 @@ import java.io.IOException; |
|
|
|
import java.security.MessageDigest; |
|
|
|
import java.security.NoSuchAlgorithmException; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 通用登录接口 |
|
|
@ -73,6 +75,20 @@ public class LoginController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 返回文字版的验证码 |
|
|
|
* 磐石大屏3.10号提出的需求 |
|
|
|
* @param uuid |
|
|
|
* @throws IOException |
|
|
|
*/ |
|
|
|
@PostMapping("captcha/{uuid}") |
|
|
|
public Result captcha(@PathVariable(name = "uuid", required = true) String uuid) { |
|
|
|
Map<String, String> map = new HashMap<>(); |
|
|
|
map.put("captcha", captchaService.getTextCaptcha(uuid)); |
|
|
|
return new Result().ok(map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.lang.String> |
|
|
|