customer creation now pointing to velocity

This commit is contained in:
2026-05-29 15:36:00 +02:00
parent 0bb63055a9
commit 24ba6d13f6
4 changed files with 74 additions and 5 deletions

View File

@@ -150,8 +150,8 @@ public class RegistrationWorkflow extends WorkflowDefinition {
public void resendOtp(StateExecution execution) {
OtpRequest otpRequest = execution.getVariable("resend", OtpRequest.class);
Otp otp = otpService.generateOtp(otpRequest.getUsername(), "REGISTRATION");
String string = String.format("Your Peak verification code is: %s", otp.getOtp());
emailService.sendSimpleMessage(otpRequest.getUsername(), "Peak verification code", string);
String string = String.format("Your Velocity Pay verification code is: %s", otp.getOtp());
emailService.sendSimpleMessage(otpRequest.getUsername(), "Velocity Pay verification code", string);
log.info("otp generated successfully: {}", otp.getOtp());
}