Last change
on this file since 6fe77af was 84d0fbb, checked in by Ema <ema_spirova@…>, 3 years ago |
spring security 2.0
|
-
Property mode
set to
100644
|
File size:
595 bytes
|
Rev | Line | |
---|
[84d0fbb] | 1 | package finki.diplomska.tripplanner.payload;
|
---|
| 2 |
|
---|
| 3 | import javax.validation.constraints.NotBlank;
|
---|
| 4 |
|
---|
| 5 | public class LoginRequest {
|
---|
| 6 |
|
---|
| 7 | @NotBlank(message = "Username cannot be blank")
|
---|
| 8 | private String username;
|
---|
| 9 |
|
---|
| 10 | @NotBlank(message = "Password cannot be blank")
|
---|
| 11 | private String password;
|
---|
| 12 |
|
---|
| 13 | public String getUsername() {
|
---|
| 14 | return username;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public void setUsername(String username) {
|
---|
| 18 | this.username = username;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | public String getPassword() {
|
---|
| 22 | return password;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | public void setPassword(String password) {
|
---|
| 26 | this.password = password;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.