Changeset 7536 for trunk/www/switch.jsp


Ignore:
Timestamp:
Nov 28, 2018, 8:49:22 AM (3 years ago)
Author:
Nicklas Nordborg
Message:

References #2131: Add support for installing multiple authentication managers

Added an "external" version of the default username+password login form. This is is disabled by default but need to be used when another external authentication manager has been installed and some users still need to be able to login with username+password.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/switch.jsp

    r7531 r7536  
    3939  import="net.sf.basedb.clients.web.extensions.JspContext"
    4040  import="net.sf.basedb.clients.web.extensions.login.LoginFormAction"
    41   import="net.sf.basedb.clients.web.extensions.login.LoginFormBean"
     41  import="net.sf.basedb.clients.web.extensions.login.PasswordLoginFormFactory"
    4242  import="net.sf.basedb.clients.web.extensions.login.FieldInfo"
    4343  import="net.sf.basedb.util.Values"
     
    9191  if (loginAction == null)
    9292  {
    93     LoginFormBean bean  = new LoginFormBean();
    94     bean.setRememberLastLogin(true);
    95     bean.setLoginField(FieldInfo.DEFAULT_LOGIN);
    96     bean.setPasswordField(FieldInfo.DEFAULT_PASSWORD);
    97     loginAction = bean;
    98     selectedLoginForm = "password";
     93    loginAction = PasswordLoginFormFactory.INSTANCE;
     94    selectedLoginForm = loginAction.getId();
    9995  }
    10096  FieldInfo loginField = loginAction.getLoginField();
Note: See TracChangeset for help on using the changeset viewer.