| Line 75... |
Line 75... |
| 75 |
log.debug(password);
|
75 |
log.debug(password);
|
| 76 |
UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
|
76 |
UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
|
| 77 |
in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient
|
77 |
in.shop2020.model.v1.user.UserContextService.Client userClient = userContextServiceClient
|
| 78 |
.getClient();
|
78 |
.getClient();
|
| 79 |
User user = userClient.authenticateUser(email, password);
|
79 |
User user = userClient.authenticateUser(email, password);
|
| 80 |
userClient.setUserAsLoggedIn(user.getUserId(),
|
80 |
userClient.setUserAsLoggedIn(user.getUserId(),(new Date()).getTime());
|
| 81 |
(new Date()).getTime());
|
81 |
String pincode = userClient.getDefaultPincode(user.getUserId());
|
| 82 |
|
- |
|
| 83 |
userinfo.setUserId(user.getUserId());
|
82 |
userinfo.setUserId(user.getUserId());
|
| 84 |
userinfo.setNameOfUser(user.getName());
|
83 |
userinfo.setNameOfUser(user.getName());
|
| 85 |
userinfo.setEmail(email);
|
84 |
userinfo.setEmail(email);
|
| 86 |
userinfo.setLoggedIn(true);
|
85 |
userinfo.setLoggedIn(true);
|
| - |
|
86 |
userinfo.setPincode(pincode);
|
| 87 |
|
87 |
|
| 88 |
// TODO: setTotalItems shouldn't be a method on userinfo. This
|
88 |
// TODO: setTotalItems shouldn't be a method on userinfo. This
|
| 89 |
// allows
|
89 |
// allows
|
| 90 |
// for potentially updating the item count wrongly. The method
|
90 |
// for potentially updating the item count wrongly. The method
|
| 91 |
// setCartId
|
91 |
// setCartId
|