mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 23:57:12 +08:00
支持短信验证码登录
This commit is contained in:
@@ -24,6 +24,8 @@ public class LoginUserHisEntity extends CommonEntity {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String loginType;
|
||||||
|
private String phone;
|
||||||
private String userName;
|
private String userName;
|
||||||
private String ip;
|
private String ip;
|
||||||
private String location;
|
private String location;
|
||||||
|
|||||||
@@ -293,6 +293,8 @@ public class SessionService {
|
|||||||
|
|
||||||
SecurityContextHolder.setContext(context);
|
SecurityContextHolder.setContext(context);
|
||||||
LoginUserHisEntity his = new LoginUserHisEntity();
|
LoginUserHisEntity his = new LoginUserHisEntity();
|
||||||
|
his.setLoginType(dto.getLoginType());
|
||||||
|
his.setPhone(dto.getPhone());
|
||||||
his.setIp(RequestUtils.getIp(request));
|
his.setIp(RequestUtils.getIp(request));
|
||||||
his.setUa(RequestUtils.getUa(request));
|
his.setUa(RequestUtils.getUa(request));
|
||||||
his.setCaptcha(dto.getCaptcha());
|
his.setCaptcha(dto.getCaptcha());
|
||||||
@@ -309,6 +311,8 @@ public class SessionService {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
LoginUserHisEntity his = new LoginUserHisEntity();
|
LoginUserHisEntity his = new LoginUserHisEntity();
|
||||||
|
his.setLoginType(dto.getLoginType());
|
||||||
|
his.setPhone(dto.getPhone());
|
||||||
his.setIp(RequestUtils.getIp(request));
|
his.setIp(RequestUtils.getIp(request));
|
||||||
his.setUa(RequestUtils.getUa(request));
|
his.setUa(RequestUtils.getUa(request));
|
||||||
his.setCaptcha(dto.getCaptcha());
|
his.setCaptcha(dto.getCaptcha());
|
||||||
|
|||||||
Reference in New Issue
Block a user