Subversion Repositories SmartDukaan

Rev

Rev 786 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 786 Rev 793
Line 116... Line 116...
116
 
116
 
117
 
117
 
118
		user = userClient.createUser(user);
118
		user = userClient.createUser(user);
119
		long userId = user.getUserId();
119
		long userId = user.getUserId();
120
		userClient.setUserAsLoggedIn(userId, (new Date()).getTime());
120
		userClient.setUserAsLoggedIn(userId, (new Date()).getTime());
-
 
121
		String pincode = userClient.getDefaultPincode(user.getUserId());
121
 
122
		
122
		userinfo.setUserId(userId);
123
		userinfo.setUserId(userId);
123
		userinfo.setNameOfUser(userName);
124
		userinfo.setNameOfUser(userName);
124
		userinfo.setEmail(email);
125
		userinfo.setEmail(email);
125
		userinfo.setLoggedIn(true);
126
		userinfo.setLoggedIn(true);
126
		
127
		userinfo.setPincode(pincode);
127
		// TODO: setTotalItems shouldn't be a method on userinfo. This allows
128
		// TODO: setTotalItems shouldn't be a method on userinfo. This allows
128
		// for potentially updating the item count wrongly. The method setCartId
129
		// for potentially updating the item count wrongly. The method setCartId
129
		// should update the item count as well. Also, there can be a method
130
		// should update the item count as well. Also, there can be a method
130
		// called refreshItemCount() that automatically updates the number of
131
		// called refreshItemCount() that automatically updates the number of
131
		// items currently in the cart.
132
		// items currently in the cart.