| Line 7... |
Line 7... |
| 7 |
import in.shop2020.datalogger.EventType;
|
7 |
import in.shop2020.datalogger.EventType;
|
| 8 |
import in.shop2020.model.v1.user.Sex;
|
8 |
import in.shop2020.model.v1.user.Sex;
|
| 9 |
import in.shop2020.model.v1.user.User;
|
9 |
import in.shop2020.model.v1.user.User;
|
| 10 |
import in.shop2020.serving.interceptors.TrackingInterceptor;
|
10 |
import in.shop2020.serving.interceptors.TrackingInterceptor;
|
| 11 |
import in.shop2020.serving.utils.DesEncrypter;
|
11 |
import in.shop2020.serving.utils.DesEncrypter;
|
| 12 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
12 |
import in.shop2020.thrift.clients.UserClient;
|
| 13 |
import in.shop2020.utils.DataLogger;
|
13 |
import in.shop2020.utils.DataLogger;
|
| 14 |
|
14 |
|
| 15 |
import java.io.IOException;
|
15 |
import java.io.IOException;
|
| 16 |
import java.util.Date;
|
16 |
import java.util.Date;
|
| 17 |
import java.util.List;
|
17 |
import java.util.List;
|
| Line 96... |
Line 96... |
| 96 |
if(!isValid){
|
96 |
if(!isValid){
|
| 97 |
DataLogger.logData(EventType.REGISTER_DATA_INCOMPLETE, session.getId(), userinfo.getUserId(), email, userName, communicationEmail);
|
97 |
DataLogger.logData(EventType.REGISTER_DATA_INCOMPLETE, session.getId(), userinfo.getUserId(), email, userName, communicationEmail);
|
| 98 |
return isValid;
|
98 |
return isValid;
|
| 99 |
}
|
99 |
}
|
| 100 |
|
100 |
|
| 101 |
UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
|
101 |
UserClient userContextServiceClient = new UserClient();
|
| 102 |
in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
|
102 |
in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient.getClient();
|
| 103 |
|
103 |
|
| 104 |
if(userClient.userExists(email)){
|
104 |
if(userClient.userExists(email)){
|
| 105 |
addActionError("User already exists with this email id.");
|
105 |
addActionError("User already exists with this email id.");
|
| 106 |
DataLogger.logData(EventType.REGISTER_FAILED_USER_EXISTS, session.getId(), userinfo.getUserId(), email, userName, communicationEmail);
|
106 |
DataLogger.logData(EventType.REGISTER_FAILED_USER_EXISTS, session.getId(), userinfo.getUserId(), email, userName, communicationEmail);
|