added login security on nflow ui

This commit is contained in:
2025-10-27 23:57:56 +02:00
parent 506d8a8e41
commit 7f2a5f6e6f
2 changed files with 9 additions and 6 deletions

View File

@@ -35,6 +35,11 @@ public class OnboardingController {
private final WorkflowUtils workflowUtils;
private final OtpService otpService;
@PostMapping("/system-user")
public ResponseEntity sys(@RequestBody RegisterRequest request) {
return ResponseEntity.ok(userService.register(request));
}
@PostMapping("/check/{username}")
public ResponseEntity check(@PathVariable String username) {
QueryWorkflowInstances query = new QueryWorkflowInstances.Builder()