package cleanup in registation

This commit is contained in:
eugenp 2015-01-04 12:52:25 +02:00
parent aeb85db26d
commit 59a2a422a3
12 changed files with 16 additions and 16 deletions

View File

@ -2,7 +2,7 @@ package org.baeldung.persistence.service;
import org.baeldung.persistence.model.User;
import org.baeldung.persistence.model.VerificationToken;
import org.baeldung.validation.service.EmailExistsException;
import org.baeldung.validation.EmailExistsException;
public interface IUserService {

View File

@ -2,8 +2,8 @@ package org.baeldung.persistence.service;
import javax.validation.constraints.NotNull;
import org.baeldung.validation.service.PasswordMatches;
import org.baeldung.validation.service.ValidEmail;
import org.baeldung.validation.PasswordMatches;
import org.baeldung.validation.ValidEmail;
import org.hibernate.validator.constraints.NotEmpty;
@PasswordMatches

View File

@ -2,13 +2,13 @@ package org.baeldung.persistence.service;
import javax.transaction.Transactional;
import org.baeldung.hashing.HashGenerator;
import org.baeldung.persistence.dao.UserRepository;
import org.baeldung.persistence.dao.VerificationTokenRepository;
import org.baeldung.persistence.model.Role;
import org.baeldung.persistence.model.User;
import org.baeldung.persistence.model.VerificationToken;
import org.baeldung.validation.service.EmailExistsException;
import org.baeldung.security.hash.HashGenerator;
import org.baeldung.validation.EmailExistsException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

View File

@ -1,4 +1,4 @@
package org.baeldung.hashing;
package org.baeldung.security.hash;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

View File

@ -2,9 +2,9 @@ package org.baeldung.spring;
import java.util.Locale;
import org.baeldung.hashing.HashGenerator;
import org.baeldung.validation.service.EmailValidator;
import org.baeldung.validation.service.PasswordMatchesValidator;
import org.baeldung.security.hash.HashGenerator;
import org.baeldung.validation.EmailValidator;
import org.baeldung.validation.PasswordMatchesValidator;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
@SuppressWarnings("serial")
public class EmailExistsException extends Throwable {

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
import javax.validation.Constraint;
import javax.validation.Payload;

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
import org.baeldung.persistence.service.UserDto;
import org.springframework.validation.Errors;

View File

@ -1,4 +1,4 @@
package org.baeldung.validation.service;
package org.baeldung.validation;
import javax.validation.Constraint;
import javax.validation.Payload;

View File

@ -10,7 +10,7 @@ import org.baeldung.persistence.model.VerificationToken;
import org.baeldung.persistence.service.UserDto;
import org.baeldung.persistence.service.IUserService;
import org.baeldung.registration.OnRegistrationCompleteEvent;
import org.baeldung.validation.service.EmailExistsException;
import org.baeldung.validation.EmailExistsException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;