|
|
@ -62,7 +62,7 @@ public class SysLoginService
|
|
|
|
// 验证码开关
|
|
|
|
// 验证码开关
|
|
|
|
if (captchaOnOff)
|
|
|
|
if (captchaOnOff)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
validateCapcha(username, code, uuid);
|
|
|
|
validateCaptcha(username, code, uuid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 用户验证
|
|
|
|
// 用户验证
|
|
|
|
Authentication authentication = null;
|
|
|
|
Authentication authentication = null;
|
|
|
@ -100,7 +100,7 @@ public class SysLoginService
|
|
|
|
* @param uuid 唯一标识
|
|
|
|
* @param uuid 唯一标识
|
|
|
|
* @return 结果
|
|
|
|
* @return 结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void validateCapcha(String username, String code, String uuid)
|
|
|
|
public void validateCaptcha(String username, String code, String uuid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid;
|
|
|
|
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid;
|
|
|
|
String captcha = redisCache.getCacheObject(verifyKey);
|
|
|
|
String captcha = redisCache.getCacheObject(verifyKey);
|
|
|
|