Subversion Repositories SmartDukaan

Rev

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

Rev 815 Rev 822
Line 2... Line 2...
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.serving.controllers;
4
package in.shop2020.serving.controllers;
5
 
5
 
6
import in.shop2020.model.v1.user.User;
6
import in.shop2020.model.v1.user.User;
-
 
7
import in.shop2020.serving.interceptors.LoginInterceptor;
7
import in.shop2020.serving.utils.DesEncrypter;
8
import in.shop2020.serving.utils.DesEncrypter;
8
import in.shop2020.thrift.clients.UserContextServiceClient;
9
import in.shop2020.thrift.clients.UserContextServiceClient;
9
 
10
 
10
import java.io.IOException;
11
import java.io.IOException;
11
import java.util.Date;
12
import java.util.Date;
12
 
13
 
13
import org.apache.juli.logging.Log;
14
import org.apache.juli.logging.Log;
14
import org.apache.juli.logging.LogFactory;
15
import org.apache.juli.logging.LogFactory;
15
import org.apache.struts2.convention.annotation.InterceptorRef;
-
 
16
import org.apache.struts2.convention.annotation.InterceptorRefs;
-
 
17
import org.apache.struts2.convention.annotation.Result;
16
import org.apache.struts2.convention.annotation.Result;
18
import org.apache.struts2.convention.annotation.Results;
17
import org.apache.struts2.convention.annotation.Results;
19
 
18
 
20
/**
19
/**
21
 * 
20
 * 
Line 48... Line 47...
48
		return "index";
47
		return "index";
49
	}
48
	}
50
 
49
 
51
	public String create() throws SecurityException, Exception {
50
	public String create() throws SecurityException, Exception {
52
		if (loginUser()) {
51
		if (loginUser()) {
53
			redirectUrl = (String) this.session.getAttribute("REDIRECT_URL");
52
			redirectUrl = (String) this.session.getAttribute(LoginInterceptor.REDIRECT_URL);
54
			if (redirectUrl == null) {
53
			if (redirectUrl == null) {
55
				redirectUrl = "";
54
				redirectUrl = "";
56
			}
55
			}
57
			log.debug(redirectUrl);
56
			log.debug(redirectUrl);
58
			resetRedirectUrl();
57
			resetRedirectUrl();