Foros de discusión
Custom Login
Puneet Upadhyay, modificado hace 12 años.
Custom Login
Regular Member Mensajes: 234 Fecha de incorporación: 22/10/11 Mensajes recientes
Hi All,
I wanna logged in with my credentials with my landing page and my log in portlet, without using liferay's log in portlet.
Please let me know what procedure i need to follow ???
I wanna logged in with my credentials with my landing page and my log in portlet, without using liferay's log in portlet.
Please let me know what procedure i need to follow ???
Puneet Upadhyay, modificado hace 12 años.
RE: Custom Login
Regular Member Mensajes: 234 Fecha de incorporación: 22/10/11 Mensajes recientes
Any Help???
Raja Seth, modificado hace 12 años.
RE: Custom Login
Regular Member Mensajes: 233 Fecha de incorporación: 18/08/11 Mensajes recientes
Hi Puneet,
In the portal_normal.vm, there is...
#if(!$is_signed_in)
<a href="$sign_in_url" id="sign-in" rel="nofollow">$sign_in_text</a>
#end
you can modify it to use your own sign-in portlet. Also u can set your "landing page" you can refer to this link
In the portal_normal.vm, there is...
#if(!$is_signed_in)
<a href="$sign_in_url" id="sign-in" rel="nofollow">$sign_in_text</a>
#end
you can modify it to use your own sign-in portlet. Also u can set your "landing page" you can refer to this link
Milen Dyankov, modificado hace 12 años.
RE: Custom Login
Regular Member Mensajes: 171 Fecha de incorporación: 23/09/09 Mensajes recientes
You can create a login page and place your own login portlet in it. To display it when login is required, configure the page and portlet name in portal-ext.properties. Here is what is in the original portal.properties file :
You may also need to add your own auto login hook:
#
# Enter a friendly URL of a page that will be used to login portal users
# whenever the user is navigating a community and authentication is needed.
# By default, the portal's login page or the URL set in the property
# "auth.login.url" is used.
#
auth.login.community.url=/login
#
# Enter the name of the login portlet used in a page identified by the URL
# of the previous property (if one has been set). This will allow the
# portlet to have access to the redirect parameter and thus forward the user
# to the page where he was trying to access when necessary. You should leave
# the default value unless you have your own custom login portlet
#
auth.login.portlet.name=58
You may also need to add your own auto login hook:
#
# Input a list of comma delimited class names that implement
# com.liferay.portal.security.auth.AutoLogin. These classes will run in
# consecutive order for all unauthenticated users until one of them return a
# valid user id and password combination. If no valid combination is
# returned, then the request continues to process normally. If a valid
# combination is returned, then the portal will automatically login that
# user with the returned user id and password combination.
#
# For example, com.liferay.portal.security.auth.RememberMeAutoLogin reads
# from a cookie to automatically log in a user who previously logged in
# while checking on the "Remember Me" box.
#
# This interface allows deployers to easily configure the portal to work
# with other SSO servers. See com.liferay.portal.security.auth.CASAutoLogin
# for an example of how to configure the portal with Yale's SSO server.
#
auto.login.hooks=com.liferay.portal.security.auth.CASAutoLogin,com.liferay.portal.security.auth.FacebookAutoLogin,com.liferay.portal.security.auth.NtlmAutoLogin,com.liferay.portal.security.auth.OpenIdAutoLogin,com.liferay.portal.security.auth.OpenSSOAutoLogin,com.liferay.portal.security.auth.RememberMeAutoLogin,com.liferay.portal.security.auth.SiteMinderAutoLogin