New user is not being able to login properly
How To articles are not official guidelines or officially
supporteddocumentation. They are community-contributed content and may
not alwaysreflect the latest updates to Liferay DXP. We welcome your
feedback toimprove How to articles!
While we make every effort to ensure this Knowledge Base is accurate,
itmay not always reflect the most recent updates or official
guidelines.We appreciate your understanding and encourage you to reach
out with anyfeedback or concerns.
Legacy Article
You are viewing an article from our legacy
"FastTrack"publication program, made available for
informational purposes. Articlesin this program were published without a
requirement for independentediting or verification and are provided
"as is" withoutguarantee.
Before using any information from this article, independently verify
itssuitability for your situation and project.
Issue
- A new user (this also happens to LDAP users) is unable to log-in the first time, but seems to be able to log-in on the second attempt.
-
Steps to reproduce:
1) Create a guest user from Create Account tab at the sign-in page.
2) Click on the sign-in button
3) Type the username and password of the new user and login
4) The user is redirected to the 'Terms of Use' page where they could approve it and being redirected to the password change UI.
Expected Behavior: After changing the user's password, the user should be redirected to a password reminder page and login in directly.
Observed Behavior: User gets logged out and gets redirected to the sign-in portlet
Now, when trying to log-in again (second time), the user gets logged in successfully.
Resolution
- When the following property in the portal-ext.properties file is set, the portal can behave as observed behavior
- session.enable.phishing.protection=false
- The portal works as expected after commenting or removing this property.
Did this article resolve your issue ?