|
|
@ -68,6 +68,7 @@ public class UserController { |
|
|
return new ResponseEntity<String>("Password mismatch.", HttpStatus.BAD_REQUEST); |
|
|
return new ResponseEntity<String>("Password mismatch.", HttpStatus.BAD_REQUEST); |
|
|
return new ResponseEntity<String>("Login success !!", HttpStatus.OK); |
|
|
return new ResponseEntity<String>("Login success !!", HttpStatus.OK); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@PutMapping("/update/") |
|
|
@PutMapping("/update/") |
|
|
public void update(@RequestBody User user) { |
|
|
public void update(@RequestBody User user) { |
|
|
User oldu=repo.findById(user.getUserid()).get(); |
|
|
User oldu=repo.findById(user.getUserid()).get(); |
|
|
|