package cleanup in registation
This commit is contained in:
parent
aeb85db26d
commit
59a2a422a3
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.hashing;
|
||||
package org.baeldung.security.hash;
|
||||
|
||||
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
||||
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class EmailExistsException extends Throwable {
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
import javax.validation.Constraint;
|
||||
import javax.validation.Payload;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
import javax.validation.ConstraintValidator;
|
||||
import javax.validation.ConstraintValidatorContext;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
import org.baeldung.persistence.service.UserDto;
|
||||
import org.springframework.validation.Errors;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.validation.service;
|
||||
package org.baeldung.validation;
|
||||
|
||||
import javax.validation.Constraint;
|
||||
import javax.validation.Payload;
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue