mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
more on password recovery
This commit is contained in:
@@ -34,12 +34,6 @@ public class MailService implements Serializable {
|
||||
final String username = settings.getSmtpUserName();
|
||||
final String password = settings.getSmtpPassword();
|
||||
|
||||
log.info(username);
|
||||
log.info(password);
|
||||
log.info("" + settings.isSmtpTls());
|
||||
log.info(settings.getSmtpHost());
|
||||
log.info("" + settings.getSmtpPort());
|
||||
|
||||
String dest = user.getEmail();
|
||||
|
||||
Properties props = new Properties();
|
||||
@@ -59,7 +53,7 @@ public class MailService implements Serializable {
|
||||
message.setRecipients(Message.RecipientType.TO,
|
||||
InternetAddress.parse(dest));
|
||||
message.setSubject("CommaFeed - " + subject);
|
||||
message.setText(content);
|
||||
message.setContent(content, "text/html; charset=utf-8");
|
||||
|
||||
Transport.send(message);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.commafeed.backend.services;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.SecureRandom;
|
||||
import java.security.spec.KeySpec;
|
||||
@@ -15,7 +16,8 @@ import org.slf4j.LoggerFactory;
|
||||
import com.commafeed.backend.dao.UserDAO;
|
||||
|
||||
// http://www.javacodegeeks.com/2012/05/secure-password-storage-donts-dos-and.html
|
||||
public class PasswordEncryptionService {
|
||||
@SuppressWarnings("serial")
|
||||
public class PasswordEncryptionService implements Serializable {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(UserDAO.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user