Revize 6a1a8cd7
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/user/UserController.java | ||
---|---|---|
108 | 108 |
userService.resetPassword(username, passwordDto.getPassword()); |
109 | 109 |
} |
110 | 110 |
|
111 |
//TODO check if needed, comment otherwise |
|
111 |
/** |
|
112 |
* Deletes user with given username |
|
113 |
* |
|
114 |
* @param username username |
|
115 |
*/ |
|
112 | 116 |
@DeleteMapping("/{username}") |
113 | 117 |
@Operation(summary = "deletes user with given username") |
114 | 118 |
public void deleteUser(@PathVariable String username) { |
... | ... | |
132 | 136 |
} |
133 | 137 |
try { |
134 | 138 |
String refresh_token = authorizationHeader.substring(jwtUtils.getTokenPrefix().length()); |
135 |
Algorithm algorithm = jwtUtils.getAlgorithm(); //TODO secure
|
|
139 |
Algorithm algorithm = jwtUtils.getAlgorithm(); |
|
136 | 140 |
JWTVerifier verifier = JWT.require(algorithm).build(); |
137 | 141 |
DecodedJWT decodedJWT = verifier.verify(refresh_token); |
138 | 142 |
String username = decodedJWT.getSubject(); |
Také k dispozici: Unified diff
Database exported to script
- removed initialization from application
- updated docker-compose.yml to create volume and add data from script
re #9746