Package sk.iway.iwcm.logon
Class AdminLogonController
java.lang.Object
sk.iway.iwcm.logon.AdminLogonController
LogonController.java
Class LogonController is used for
Title webjet8
Company Interway a.s. (www.interway.sk)
Copyright Interway a.s. (c) 2001-2018
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddetermineRootWebPageDirectory(jakarta.servlet.http.HttpSession session, Identity user) edit(UserForm userForm, org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpSession session) static intsetAdmin(jakarta.servlet.http.HttpServletRequest request) Set admin session for oauth2 return after successful authenticationshowChangePasswordForm(org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpSession session) This method is used from email link to change passwordshowDeviceVerification(org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request) Displays the pending browser verification without authenticating the session.showForm(UserForm userForm, org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpSession session) submit(UserForm userForm, org.springframework.validation.BindingResult result, org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) verifyDevice(String action, String code, org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Completes or cancels an email challenge using the existing login and CSRF helpers.
-
Constructor Details
-
AdminLogonController
-
-
Method Details
-
showChangePasswordForm
@GetMapping("logon/changePassword") public String showChangePasswordForm(org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpSession session) This method is used from email link to change password- Parameters:
request-session-- Returns:
-
edit
-
showDeviceVerification
@GetMapping("logon/device/") public String showDeviceVerification(org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request) Displays the pending browser verification without authenticating the session. -
verifyDevice
@PostMapping("logon/device/") public String verifyDevice(@RequestParam(defaultValue="verify") String action, @RequestParam(required=false) String code, org.springframework.ui.ModelMap model, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Completes or cancels an email challenge using the existing login and CSRF helpers. -
logonDoRedirect
-
showForm
-
submit
-
setAdmin
@GetMapping("logon/setadmin/") @ResponseBody public String setAdmin(jakarta.servlet.http.HttpServletRequest request) Set admin session for oauth2 return after successful authentication- Parameters:
request-- Returns:
-
determineRootWebPageDirectory
public static void determineRootWebPageDirectory(jakarta.servlet.http.HttpSession session, Identity user) -
getUserFirstEditableGroup
-