掲示板

Login using Screen name AND Another input field

thumbnail
7年前 に darren rose によって更新されました。

Login using Screen name AND Another input field

Regular Member 投稿: 215 参加年月日: 15/04/04 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: Login using Screen name AND Another input field

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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
7年前 に darren rose によって更新されました。

RE: Login using Screen name AND Another input field

Regular Member 投稿: 215 参加年月日: 15/04/04 最新の投稿
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
7年前 に David H Nebinger によって更新されました。

RE: Login using Screen name AND Another input field

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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.