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
Fields Modifier and Type Field Description protected org.springframework.context.MessageSource
messageSource
protected MessageUtil
messageUtil
-
Constructor Summary
Constructors Constructor Description SignupController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
void
ajaxLoginCheck(javax.servlet.http.HttpServletResponse response)
void
confirmRegistration(String username, String key, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
gemma.gsec.authentication.LoginDetailsValueObject
loginCheck()
AJAX DWRvoid
setRecaptchaTester(ReCaptcha reCaptcha)
void
signup(String password, String cPass, String username, String email, String cEmail, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
String
signupForm()
-
-
-
Field Detail
-
messageSource
@Autowired protected org.springframework.context.MessageSource messageSource
-
messageUtil
@Autowired protected MessageUtil messageUtil
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
ajaxLoginCheck
@RequestMapping(value="/ajaxLoginCheck.html", method={GET,HEAD}) public void ajaxLoginCheck(javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
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
@RequestMapping(value="/signup.html", method={GET,HEAD}) public String signupForm()
-
setRecaptchaTester
public void setRecaptchaTester(ReCaptcha reCaptcha)
-
-