Class SignupController
java.lang.Object
ubic.gemma.web.controller.common.auditAndSecurity.SignupController
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Controller
public class SignupController
extends Object
implements org.springframework.beans.factory.InitializingBean
Controller to signup new users. See also the UserListController.
- Author:
- pavlidis, keshav
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSourceprotected MessageUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidajaxLoginCheck(javax.servlet.http.HttpServletResponse response) voidconfirmRegistration(String username, String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) gemma.gsec.authentication.LoginDetailsValueObjectAJAX DWRvoidsetRecaptchaTester(ReCaptcha reCaptcha) voidsignup(String password, String cPass, String username, String email, String cEmail, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Field Details
-
messageSource
@Autowired protected org.springframework.context.MessageSource messageSource -
messageUtil
-
-
Constructor Details
-
SignupController
public SignupController()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
ajaxLoginCheck
-
confirmRegistration
@RequestMapping(value="/confirmRegistration.html", method={GET,HEAD}) public void confirmRegistration(@RequestParam("username") String username, @RequestParam("key") String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
loginCheck
public gemma.gsec.authentication.LoginDetailsValueObject loginCheck()AJAX DWR- Returns:
- loginDetails
-
signup
@RequestMapping(value="/signup.html", method=POST) public void signup(@RequestParam("password") String password, @RequestParam("passwordConfirm") String cPass, @RequestParam("username") String username, @RequestParam("email") String email, @RequestParam("emailConfirm") String cEmail, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception - Throws:
Exception
-
signupForm
-
setRecaptchaTester
-