@Controller
@RequestMapping(value="/admin/users/changePassword.form")
public class ChangePasswordFormController
extends java.lang.Object
Constructor and Description |
---|
ChangePasswordFormController() |
Modifier and Type | Method and Description |
---|---|
User |
formBackingObject()
The model from which the data binding happens on the view
|
java.lang.String |
handleSubmission(javax.servlet.http.HttpSession httpSession,
java.lang.String password,
java.lang.String confirmPassword,
java.lang.String question,
java.lang.String answer,
java.lang.String confirmAnswer,
User user,
org.springframework.validation.BindingResult errors)
Method to save changes of the new password for a user.
|
java.lang.String |
showForm(javax.servlet.http.HttpSession httpSession)
This method will display the change password form
|
@ModelAttribute(value="user") public User formBackingObject()
@RequestMapping(method=GET) public java.lang.String showForm(javax.servlet.http.HttpSession httpSession)
httpSession
- current browser session@RequestMapping(method=POST) public java.lang.String handleSubmission(javax.servlet.http.HttpSession httpSession, @RequestParam(required=true,value="password") java.lang.String password, @RequestParam(required=true,value="confirmPassword") java.lang.String confirmPassword, @RequestParam(required=false,value="question") java.lang.String question, @RequestParam(required=false,value="answer") java.lang.String answer, @RequestParam(required=false,value="confirmAnswer") java.lang.String confirmAnswer, @ModelAttribute(value="user") User user, org.springframework.validation.BindingResult errors)
password
- to be appliedconfirmPassword
- confirmation for the password to be appliedquestion
- in case of a forgotten passwordanswer
- answer for the questionconfirmAnswer
- confirmation of the answer for the questionerrors
- while processing the formCopyright © 2018 OpenMRS Inc.. All Rights Reserved.