Subversion Repositories SmartDukaan

Rev

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

Rev 3090 Rev 3106
Line 20... Line 20...
20
     */
20
     */
21
    private static final long serialVersionUID = 1L;
21
    private static final long serialVersionUID = 1L;
22
 
22
 
23
    private String password; 
23
    private String password; 
24
 
24
 
25
    public String getPassword() {
-
 
26
        return password;
-
 
27
    }
-
 
28
 
-
 
29
    public void setPassword(String password) {
-
 
30
        this.password = password;
-
 
31
    }
-
 
32
 
-
 
33
    public String updatePassword() throws TException
25
    public String updatePassword() throws TException
34
    {
26
    {
35
        createServiceClients();
27
        createServiceClients();
36
        crmServiceClient.updatePasswordForAgent(currentAgentEmailId, new Sha256Hash(password).toHex());
28
        crmServiceClient.updatePasswordForAgent(currentAgentEmailId, new Sha256Hash(password).toHex());
37
        addActionMessage("Password changed successfully!");
29
        addActionMessage("Password changed successfully!");
Line 42... Line 34...
42
    {
34
    {
43
        log.info("Logging out!");
35
        log.info("Logging out!");
44
        SecurityUtils.getSubject().logout();
36
        SecurityUtils.getSubject().logout();
45
        return "loginPage";
37
        return "loginPage";
46
    }
38
    }
-
 
39
 
-
 
40
    public String getPassword() {
-
 
41
        return password;
-
 
42
    }
-
 
43
 
-
 
44
    public void setPassword(String password) {
-
 
45
        this.password = password;
-
 
46
    }
47
}
47
}