fix telepon and init lupas
This commit is contained in:
@@ -3,11 +3,9 @@ package com.iconplus.smartproc.controller;
|
||||
import com.iconplus.smartproc.exception.BusinessException;
|
||||
import com.iconplus.smartproc.helper.model.EmptyRequest;
|
||||
import com.iconplus.smartproc.helper.model.EmptyResponse;
|
||||
import com.iconplus.smartproc.model.request.ChangePasswordRequest;
|
||||
import com.iconplus.smartproc.model.request.ForgotPasswordRequest;
|
||||
import com.iconplus.smartproc.model.request.LoginRequest;
|
||||
import com.iconplus.smartproc.model.request.RefreshTokenRequest;
|
||||
import com.iconplus.smartproc.model.request.*;
|
||||
import com.iconplus.smartproc.model.response.GlobalResponse;
|
||||
import com.iconplus.smartproc.model.response.InitForgotPasswordResponse;
|
||||
import com.iconplus.smartproc.model.response.RefreshTokenResponse;
|
||||
import com.iconplus.smartproc.service.authentication.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -22,17 +20,20 @@ public class AuthenticationController {
|
||||
private final LogoutService logoutService;
|
||||
private final ChangePasswordService changePasswordService;
|
||||
private final ForgotPasswordService forgotPasswordService;
|
||||
private final InitForgotPasswordService initForgotPasswordService;
|
||||
|
||||
public AuthenticationController(LoginService loginService,
|
||||
TokenManagementService tokenManagementService,
|
||||
LogoutService logoutService,
|
||||
ChangePasswordService changePasswordService,
|
||||
ForgotPasswordService forgotPasswordService) {
|
||||
ForgotPasswordService forgotPasswordService,
|
||||
InitForgotPasswordService initForgotPasswordService) {
|
||||
this.loginService = loginService;
|
||||
this.tokenManagementService = tokenManagementService;
|
||||
this.logoutService = logoutService;
|
||||
this.changePasswordService = changePasswordService;
|
||||
this.forgotPasswordService = forgotPasswordService;
|
||||
this.initForgotPasswordService = initForgotPasswordService;
|
||||
}
|
||||
|
||||
@PostMapping("/login")
|
||||
@@ -73,4 +74,10 @@ public class AuthenticationController {
|
||||
return forgotPasswordService.execute(forgotPasswordRequest);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/init/forgot-password")
|
||||
public InitForgotPasswordResponse initForgotPassword(@RequestBody InitForgotPasswordRequest initForgotPasswordRequest) {
|
||||
return initForgotPasswordService.execute(initForgotPasswordRequest);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user