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 AdminNavigationService
protected AdminSecurityService
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected 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 String
static String
static String
static String
static String
protected AdminUser
static String
static String
initResetPasswordForm
(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 String
redirectToLoginWithMessage
(String message) protected String
redirectToResetPasswordWithMessage
(String message) resetPassword
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model) void
setAdminSecurityService
(AdminSecurityService adminSecurityService) static void
setChangePasswordView
(String changePasswordView) protected void
setErrors
(GenericResponse response, jakarta.servlet.http.HttpServletRequest request) static void
setForgotPasswordView
(String forgotPasswordView) static void
setForgotUsernameView
(String forgotUsernameView) static void
setLoginRedirect
(String loginRedirect) static void
setLoginView
(String loginView) static void
setResetPasswordRedirect
(String resetPasswordRedirect) static void
setResetPasswordView
(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
-