forked from Archives/Athou_commafeed
code formatting
This commit is contained in:
@@ -21,14 +21,12 @@ public class PasswordEncryptionService implements Serializable {
|
|||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(UserDAO.class);
|
private static final Logger log = LoggerFactory.getLogger(UserDAO.class);
|
||||||
|
|
||||||
public boolean authenticate(String attemptedPassword,
|
public boolean authenticate(String attemptedPassword, byte[] encryptedPassword, byte[] salt) {
|
||||||
byte[] encryptedPassword, byte[] salt) {
|
|
||||||
// Encrypt the clear-text password using the same salt that was used to
|
// Encrypt the clear-text password using the same salt that was used to
|
||||||
// encrypt the original password
|
// encrypt the original password
|
||||||
byte[] encryptedAttemptedPassword = null;
|
byte[] encryptedAttemptedPassword = null;
|
||||||
try {
|
try {
|
||||||
encryptedAttemptedPassword = getEncryptedPassword(
|
encryptedAttemptedPassword = getEncryptedPassword(attemptedPassword, salt);
|
||||||
attemptedPassword, salt);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// should never happen
|
// should never happen
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
|
|||||||
Reference in New Issue
Block a user