Subversion Repositories SmartDukaan

Rev

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

Rev 7096 Rev 7113
Line 86... Line 86...
86
            }
86
            }
87
            if(!hotSpotStore.getPassword().equals(password)){
87
            if(!hotSpotStore.getPassword().equals(password)){
88
                setMessage("Wrong Password. Try Again.");
88
                setMessage("Wrong Password. Try Again.");
89
                return INDEX;    
89
                return INDEX;    
90
            }
90
            }
-
 
91
            request.getSession().setAttribute("LOGGED_IN", "TRUE");
91
        } catch (TTransportException e) {
92
        } catch (TTransportException e) {
92
            e.printStackTrace();
93
            e.printStackTrace();
93
            return "authfail";
94
            return "authfail";
94
        } catch (TException e) {
95
        } catch (TException e) {
95
            e.printStackTrace();
96
            e.printStackTrace();
96
            return "authfail";
97
            return "authfail";
97
        }
98
        }
98
        request.getSession().setAttribute("LOGGED_IN", "TRUE");
-
 
99
        redirectUrl = "/home";
99
        redirectUrl = "/home";
100
        return "redirect";
100
        return "redirect";
101
    }
101
    }
102
    
102
    
103
    public String doLogout()
103
    public String doLogout()