Project

General

Profile

« Previous | Next » 

Revision 49392

Added by Sofia Baltzi over 6 years ago

Add reset ldap Password

View differences:

VerificationActions.java
43 43
            e.printStackTrace();
44 44
            logger.info("Fail to insert user.", e);
45 45
        }
46
        
47 46
    }
48 47

  
49

  
50 48
    /**
51 49
     * Updates the row of verification table with the new date for the given username
52 50
     */
......
56 54

  
57 55
            // Get userId to update user
58 56
            UserVerification userVerificationOld = userVerificationDAO.fetchByUsername(username);
59

  
60 57
            UserVerification userVerification  = new UserVerification(username);
61
            logger.info("1 . verificationCode: " + verificationCode);
62 58
            userVerification.setVerificationCode(verificationCode);
63
            logger.info("2 . verificationCode: " + verificationCode);
64 59
            userVerification.setDate(date);
65 60
            userVerification.setId(userVerificationOld.getId());
66 61

  
67 62
            userVerificationDAO.update(userVerification);
68 63

  
69
            logger.info("3 . verificationCode: " + verificationCode);
70 64
            logger.info("Update user: " + username + " with verification code " + verificationCode);
71 65

  
72 66
        } catch (SQLException e) {
......
96 90
            e.printStackTrace();
97 91
            logger.info("Fail to search user.", e);
98 92
        }
99

  
100 93
        return true;
101
        //TODO
102
        //return false;
103
        //throw new UnsupportedOperationException();
104 94
    }
105 95

  
106 96
    /**
......
127 117
                e.printStackTrace();
128 118
                logger.info("Fail to search user.", e);
129 119
            }
130

  
131 120
            return true;
132 121
    }
133 122

  

Also available in: Unified diff