Foros de discusión

Login using Screen name AND Another input field

thumbnail
darren rose, modificado hace 7 años.

Login using Screen name AND Another input field

Regular Member Mensajes: 215 Fecha de incorporación: 4/04/15 Mensajes recientes
Currently login via screen name and password is supported.
What we would like is screen name and extra field and password - in our case, screen name, account and password

regards
thumbnail
David H Nebinger, modificado hace 7 años.

RE: Login using Screen name AND Another input field

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
This would be difficult to build generically. Many times things like this seem like they'd be pretty simple, but implementors typically want that second field to come from custom fields or custom entities or web services or hard coded values or the list of sites or...

For the singleton, well you're looking at a JSP hook and a struts action override. In your override you can process the account to verify it is valid, etc.
thumbnail
darren rose, modificado hace 7 años.

RE: Login using Screen name AND Another input field

Regular Member Mensajes: 215 Fecha de incorporación: 4/04/15 Mensajes recientes
David H Nebinger:
This would be difficult to build generically. Many times things like this seem like they'd be pretty simple, but implementors typically want that second field to come from custom fields or custom entities or web services or hard coded values or the list of sites or...

For the singleton, well you're looking at a JSP hook and a struts action override. In your override you can process the account to verify it is valid, etc.


So its possible to override the login page? and add an extra input field which I can pick up in my login hook?

Are there examples of the custom login page?
thumbnail
David H Nebinger, modificado hace 7 años.

RE: Login using Screen name AND Another input field

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Yes it is possible to override the login page.

Using a JSP hook you can change the login.jsp page to add other fields. And doing a struts override on /login/login you can get access to the field. As far as a specific example for what you're trying to do, probably not, but different examples that you might find for the different aspects that you can stitch together, that's likely.