Class AdminLoginController
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
org.broadleafcommerce.openadmin.web.controller.AdminLoginController
@Controller("blAdminLoginController")
public class AdminLoginController
extends BroadleafAbstractController
AdminLoginController handles login related needs for the BLC admin including:
- Forgot Password
- Forgot Username
- Reset Password
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdminNavigationServiceprotected AdminSecurityServiceprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseLogin(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) changePassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) forgotPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) forgotUsername(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) static Stringstatic Stringstatic Stringstatic Stringstatic Stringprotected AdminUserstatic Stringstatic StringinitResetPasswordForm(jakarta.servlet.http.HttpServletRequest request) loginSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) processchangePassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, ResetPasswordForm resetPasswordForm) processForgotUserName(jakarta.servlet.http.HttpServletRequest request, String email) processResetPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, ResetPasswordForm resetPasswordForm) processSendResetPasswordEmail(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String username) protected StringredirectToLoginWithMessage(String message) protected StringredirectToResetPasswordWithMessage(String message) resetPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) voidsetAdminSecurityService(AdminSecurityService adminSecurityService) static voidsetChangePasswordView(String changePasswordView) protected voidsetErrors(GenericResponse response, jakarta.servlet.http.HttpServletRequest request) static voidsetForgotPasswordView(String forgotPasswordView) static voidsetForgotUsernameView(String forgotUsernameView) static voidsetLoginRedirect(String loginRedirect) static voidsetLoginView(String loginView) static voidsetResetPasswordRedirect(String resetPasswordRedirect) static voidsetResetPasswordView(String resetPasswordView) Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
-
Field Details
-
loginView
-
forgotPasswordView
-
forgotUsernameView
-
resetPasswordView
-
changePasswordView
-
loginRedirect
-
resetPasswordRedirect
-
noAccessView
-
adminSecurityService
-
-
Constructor Details
-
AdminLoginController
public AdminLoginController()
-
-
Method Details
-
getLoginView
-
setLoginView
-
getForgotPasswordView
-
setForgotPasswordView
-
getForgotUsernameView
-
setForgotUsernameView
-
getResetPasswordView
-
setResetPasswordView
-
getChangePasswordView
-
setChangePasswordView
-
getLoginRedirect
-
setLoginRedirect
-
getResetPasswordRedirect
-
setResetPasswordRedirect
-
baseLogin
@RequestMapping(value="/login", method=GET) public String baseLogin(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
loginSuccess
@RequestMapping(value={"/","/loginSuccess"}, method=GET) public String loginSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
forgotPassword
@RequestMapping(value="/forgotPassword", method=GET) public String forgotPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
forgotUsername
@RequestMapping(value="/forgotUsername", method=GET) public String forgotUsername(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
processSendResetPasswordEmail
-
processResetPassword
@RequestMapping(value="/resetPassword", method=POST) public String processResetPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute("resetPasswordForm") ResetPasswordForm resetPasswordForm) -
processForgotUserName
-
resetPassword
@RequestMapping(value="/resetPassword", method=GET) public String resetPassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
initResetPasswordForm
@ModelAttribute("resetPasswordForm") public ResetPasswordForm initResetPasswordForm(jakarta.servlet.http.HttpServletRequest request) -
changePassword
@RequestMapping(value="/changePassword", method=GET) public String changePassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) -
processchangePassword
@RequestMapping(value="/changePassword", method=POST) public String processchangePassword(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute("resetPasswordForm") ResetPasswordForm resetPasswordForm) -
redirectToLoginWithMessage
-
redirectToResetPasswordWithMessage
-
setErrors
-
getPersistentAdminUser
-
getAdminSecurityService
-
setAdminSecurityService
-