Subversion Repositories SmartDukaan

Rev

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

Rev 822 Rev 830
Line 20... Line 20...
20
 * 
20
 * 
21
 * @author rajveer
21
 * @author rajveer
22
 * 
22
 * 
23
 */
23
 */
24
 
24
 
25
@Results({
-
 
26
		@Result(name = "failure", type = "redirectAction", params = {
-
 
27
				"actionName", "login" }),
-
 
28
		@Result(name = "redirect", location = "${url}", type = "redirect") })
25
@Result(name = "redirect", location = "${url}", type = "redirect")
29
public class LoginController extends BaseController {
26
public class LoginController extends BaseController {
30
 
27
 
31
	/**
28
	/**
32
	 * 
29
	 * 
33
	 */
30
	 */
Line 56... Line 53...
56
			log.debug(redirectUrl);
53
			log.debug(redirectUrl);
57
			resetRedirectUrl();
54
			resetRedirectUrl();
58
			return "redirect";
55
			return "redirect";
59
		} else {
56
		} else {
60
			addActionError("Either email or password is wrong.");
57
			addActionError("Either email or password is wrong.");
61
			return "failure";
58
			return "login";
62
		}
59
		}
63
	}
60
	}
64
 
61
 
65
	private boolean loginUser() {
62
	private boolean loginUser() {
66
		try {
63
		try {