@Controller(value="blAdminLoginController") public class AdminLoginController extends BroadleafAbstractController
Modifier and Type | Field and Description |
---|---|
protected AdminNavigationService |
adminNavigationService |
protected AdminSecurityService |
adminSecurityService |
protected static String |
changePasswordView |
protected static String |
forgotPasswordView |
protected static String |
forgotUsernameView |
protected static String |
loginRedirect |
protected static String |
loginView |
protected static String |
noAccessView |
protected static String |
resetPasswordRedirect |
protected static String |
resetPasswordView |
Constructor and Description |
---|
AdminLoginController() |
Modifier and Type | Method and Description |
---|---|
String |
baseLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
changePassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
forgotPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
forgotUsername(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
AdminSecurityService |
getAdminSecurityService() |
static String |
getChangePasswordView() |
static String |
getForgotPasswordView() |
static String |
getForgotUsernameView() |
static String |
getLoginRedirect() |
static String |
getLoginView() |
protected AdminUser |
getPersistentAdminUser() |
static String |
getResetPasswordRedirect() |
static String |
getResetPasswordView() |
ResetPasswordForm |
initResetPasswordForm(javax.servlet.http.HttpServletRequest request) |
String |
loginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
processchangePassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
ResetPasswordForm resetPasswordForm) |
String |
processForgotUserName(javax.servlet.http.HttpServletRequest request,
String email) |
String |
processResetPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model,
ResetPasswordForm resetPasswordForm) |
String |
processSendResetPasswordEmail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username) |
protected String |
redirectToLoginWithMessage(String message) |
protected String |
redirectToResetPasswordWithMessage(String message) |
String |
resetPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
void |
setAdminSecurityService(AdminSecurityService adminSecurityService) |
static void |
setChangePasswordView(String changePasswordView) |
protected void |
setErrors(GenericResponse response,
javax.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) |
addDeepLink, getContextPath, isAjaxRequest, jsonResponse
protected AdminSecurityService adminSecurityService
protected AdminNavigationService adminNavigationService
protected static String loginView
protected static String forgotPasswordView
protected static String forgotUsernameView
protected static String resetPasswordView
protected static String changePasswordView
protected static String loginRedirect
protected static String resetPasswordRedirect
protected static String noAccessView
@RequestMapping(value="/login", method=GET) public String baseLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@RequestMapping(value={"/","/loginSuccess"}, method=GET) public String loginSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@RequestMapping(value="/forgotPassword", method=GET) public String forgotPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@RequestMapping(value="/forgotUsername", method=GET) public String forgotUsername(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@RequestMapping(value="/sendResetPassword", method=POST) public String processSendResetPasswordEmail(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @RequestParam(value="username") String username)
@RequestMapping(value="/resetPassword", method=POST) public String processResetPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute(value="resetPasswordForm") ResetPasswordForm resetPasswordForm)
@RequestMapping(value="/forgotUsername", method=POST) public String processForgotUserName(javax.servlet.http.HttpServletRequest request, @RequestParam(value="emailAddress") String email)
@RequestMapping(value="/resetPassword", method=GET) public String resetPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@ModelAttribute(value="resetPasswordForm") public ResetPasswordForm initResetPasswordForm(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/changePassword", method=GET) public String changePassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
@RequestMapping(value="/changePassword", method=POST) public String processchangePassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @ModelAttribute(value="resetPasswordForm") ResetPasswordForm resetPasswordForm)
protected String redirectToResetPasswordWithMessage(String message)
protected void setErrors(GenericResponse response, javax.servlet.http.HttpServletRequest request)
protected AdminUser getPersistentAdminUser()
public static String getLoginView()
public static void setLoginView(String loginView)
public static String getForgotPasswordView()
public static void setForgotPasswordView(String forgotPasswordView)
public static String getForgotUsernameView()
public static void setForgotUsernameView(String forgotUsernameView)
public static String getResetPasswordView()
public static void setResetPasswordView(String resetPasswordView)
public static String getChangePasswordView()
public static void setChangePasswordView(String changePasswordView)
public AdminSecurityService getAdminSecurityService()
public void setAdminSecurityService(AdminSecurityService adminSecurityService)
public static String getLoginRedirect()
public static void setLoginRedirect(String loginRedirect)
public static String getResetPasswordRedirect()
public static void setResetPasswordRedirect(String resetPasswordRedirect)
Copyright © 2020. All rights reserved.