mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
registration module
This commit is contained in:
@@ -4,6 +4,10 @@ import java.io.Serializable;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import org.hibernate.validator.constraints.Email;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
import com.wordnik.swagger.annotations.ApiModel;
|
||||
import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -13,12 +17,18 @@ import com.wordnik.swagger.annotations.ApiModelProperty;
|
||||
public class RegistrationRequest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "username, between 3 and 32 characters", required = true)
|
||||
@Length(min = 3, max = 32)
|
||||
@NotEmpty
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "password, minimum 6 characters", required = true)
|
||||
@Length(min = 6)
|
||||
@NotEmpty
|
||||
private String password;
|
||||
|
||||
@ApiModelProperty(value = "email address for password recovery", required = true)
|
||||
@Email
|
||||
@NotEmpty
|
||||
private String email;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user