Subversion Repositories SmartDukaan

Rev

Rev 2511 | Rev 2982 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2511 Rev 2817
Line 117... Line 117...
117
		user.setCommunicationEmail(communicationEmail);
117
		user.setCommunicationEmail(communicationEmail);
118
		user.setMobileNumber(mobileNumber);
118
		user.setMobileNumber(mobileNumber);
119
		user.setDateOfBirth(dateOfBirth);
119
		user.setDateOfBirth(dateOfBirth);
120
		Cookie sourceCookie = (Cookie) cookiesMap.get(TrackingInterceptor.SRC_COOKIE);
120
		Cookie sourceCookie = (Cookie) cookiesMap.get(TrackingInterceptor.SRC_COOKIE);
121
        if (sourceCookie != null) {
121
        if (sourceCookie != null) {
122
            DesEncrypter des = new DesEncrypter("Saholic");
122
            DesEncrypter des = new DesEncrypter(TrackingInterceptor.ENCRIPTION_STRING);
123
            String sourceCookieVal = des.decrypt(sourceCookie.getValue());
123
            String sourceCookieVal = des.decrypt(sourceCookie.getValue());
124
            user.setSource(sourceCookieVal);
124
            user.setSource(sourceCookieVal);
125
        }
125
        }
-
 
126
        
-
 
127
        Cookie sourceTimeCookie = (Cookie) cookiesMap.get(TrackingInterceptor.SRC_TIME_COOKIE);
-
 
128
        long sourceTime = 0;
-
 
129
        if (sourceTimeCookie != null) {
-
 
130
            try {
-
 
131
                sourceTime = Long.parseLong(sourceTimeCookie.getValue());
-
 
132
            }
-
 
133
            catch (Exception e) {
-
 
134
                log.warn("Unable to parse session src time cookie.");
-
 
135
            }
-
 
136
            user.setSourceStartTime(sourceTime);
-
 
137
        }
126
		
138
		
127
		user.setSex(Sex.WONT_SAY);
139
		user.setSex(Sex.WONT_SAY);
128
		if (sex != null) {
140
		if (sex != null) {
129
			try {
141
			try {
130
				user.setSex(Sex.findByValue(Integer.parseInt(sex)));
142
				user.setSex(Sex.findByValue(Integer.parseInt(sex)));