diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java index 96bf02e5..5ee1b3f7 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/api/LightController.java @@ -125,8 +125,21 @@ public class LightController { } -record UsernamePasswordView(String username, String password) { +class UsernamePasswordView{ + private final String username; + private final String password; + @JsonCreator - UsernamePasswordView { + public UsernamePasswordView(String username, String password) { + this.username = username; + this.password = password; + } + + public String getUsername() { + return username; + } + + public String getPassword() { + return password; } } \ No newline at end of file