Fórum

Login using Screen name AND Another input field

thumbnail
darren rose, modificado 7 Anos atrás.

Login using Screen name AND Another input field

Regular Member Postagens: 215 Data de Entrada: 04/04/15 Postagens Recentes
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 7 Anos atrás.

RE: Login using Screen name AND Another input field

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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 7 Anos atrás.

RE: Login using Screen name AND Another input field

Regular Member Postagens: 215 Data de Entrada: 04/04/15 Postagens Recentes
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 7 Anos atrás.

RE: Login using Screen name AND Another input field

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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.