Commit f53f7c16 by jhrabal

modules

parent 39a08cb7
......@@ -93,7 +93,7 @@ public class AuthApiController {
if (auth == null) {
throw new RestApiException(HttpStatus.FORBIDDEN, ErrorMessage.withCode("AUTH.BAD_USERNAME_OR_PASSWORD"));
}
return new LoginResponse("Authentication", "Basic " + Base64.getEncoder().encodeToString((login.getUsername() + ":" + login.getPassword()).getBytes()));
return new LoginResponse("Authorization", "Basic " + Base64.getEncoder().encodeToString((login.getUsername() + ":" + login.getPassword()).getBytes()));
}
/**
......@@ -139,7 +139,7 @@ public class AuthApiController {
errors.add(new AuthError(null, e.getMessage()));
}
return new LoginResponse("Authentication", "Basic " + Base64.getEncoder().encodeToString((signup.getLogin() + ":" + signup.getPassword()).getBytes()));
return new LoginResponse("Authorization", "Basic " + Base64.getEncoder().encodeToString((signup.getLogin() + ":" + signup.getPassword()).getBytes()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment