@Controller @RequestMapping(value="/admin/users/changePassword.form") public class ChangePasswordFormController extends Object
Constructor and Description |
---|
ChangePasswordFormController() |
Modifier and Type | Method and Description |
---|---|
User |
formBackingObject()
The model from which the data binding happens on the view
|
String |
handleSubmission(javax.servlet.http.HttpSession httpSession,
String password,
String confirmPassword,
String question,
String answer,
String confirmAnswer,
User user,
org.springframework.validation.BindingResult errors)
Method to save changes of the new password for a user.
|
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 String showForm(javax.servlet.http.HttpSession httpSession)
httpSession
- current browser session@RequestMapping(method=POST) public String handleSubmission(javax.servlet.http.HttpSession httpSession, @RequestParam(required=true,value="password") String password, @RequestParam(required=true,value="confirmPassword") String confirmPassword, @RequestParam(required=false,value="question") String question, @RequestParam(required=false,value="answer") String answer, @RequestParam(required=false,value="confirmAnswer") 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 LLC.. All Rights Reserved.