Package org.molgenis.framework.server.FrontControllerAuthenticator

Examples of org.molgenis.framework.server.FrontControllerAuthenticator.LoginStatus


    if (req.getString(LOGIN_USER_NAME) != null && req.getString(LOGIN_PASSWORD) != null)
    {
      String username = req.getString(LOGIN_USER_NAME);
      String password = req.getString(LOGIN_PASSWORD);

      LoginStatus login = FrontControllerAuthenticator.login(req, username, password);

      if (login == LoginStatus.ALREADY_LOGGED_IN)
      {
        // reach this by using the 'back' button of the browser and
        // click Login again :)
View Full Code Here


    if (request.getString(usrString) != null && request.getString(pwdString) != null)
    {
      String usr = request.getString(usrString);
      String pwd = request.getString(pwdString);

      LoginStatus login = FrontControllerAuthenticator.login(request, usr, pwd);

      String responseLine;
      if (login == LoginStatus.ALREADY_LOGGED_IN)
      {
        responseLine = "You are already logged in. Log out first.";
View Full Code Here

TOP

Related Classes of org.molgenis.framework.server.FrontControllerAuthenticator.LoginStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.