Class LoginController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.BaseController
-
- ca.corefacility.bioinformatics.irida.ria.web.login.LoginController
-
@Controller public class LoginController extends BaseController
-
-
Field Summary
-
Fields inherited from class ca.corefacility.bioinformatics.irida.ria.web.BaseController
MODEL_ERROR_ATTR
-
-
Constructor Summary
Constructors Constructor Description LoginController(EmailController emailController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
showLogin(org.springframework.ui.Model model, java.lang.Boolean hasError, java.security.Principal principal)
Get the login pagejava.lang.String
showSplash()
Get the index page-
Methods inherited from class ca.corefacility.bioinformatics.irida.ria.web.BaseController
getErrorsFromDataIntegrityViolationException, getErrorsFromViolationException
-
-
-
-
Constructor Detail
-
LoginController
@Autowired public LoginController(EmailController emailController)
-
-
Method Detail
-
showSplash
@RequestMapping("/") public java.lang.String showSplash()
Get the index page- Returns:
- redirect to the dashboard page
-
showLogin
@RequestMapping("/login") public java.lang.String showLogin(org.springframework.ui.Model model, @RequestParam(value="error",required=false,defaultValue="false") java.lang.Boolean hasError, java.security.Principal principal)
Get the login page- Parameters:
model
- model for the viewhasError
- Whether there's a login errorprincipal
- Currently logged in user. If set user will get sent to dashboard.- Returns:
- Login page view name
-
-