legacy-knowledge-base
公開されました Jul. 2, 2025

新規ユーザーが正しくログインできない

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 新規ユーザー(LDAPユーザーも同様)が、1回目はログインできないが、2回目はログインできるようである。
    • 再現するための手順
      1) サインインページの「アカウント作成」タブからゲストユーザーを作成する。
      2) サインインボタンをクリックする
      3) 新しいユーザーのユーザー名とパスワードを入力してログインする
      4) ユーザーは「利用規約」ページにリダイレクトされ、そこで承認してパスワード変更UIにリダイレクトされることができる。
      期待される動作 ユーザーのパスワードを変更した後、パスワードリマインダーページにリダイレクトされ、直接ログインできること。
      観察された挙動 ログアウトされ、サインインポートレットにリダイレクトされる
      現在、再ログイン(2回目)を試みると、ユーザーは正常にログインできるようになりました。

Environment

  • Liferay DXP 7.2

解決策

  • portal-ext.propertiesファイルの以下のプロパティを設定すると、ポータルは観察された動作のように動作することができます。
    • session.enable.phishing.protection=false
  • このプロパティをコメントまたは削除すると、ポータルは期待通りに動作します。

追加情報

  • # Set this to true to invalidate the session when a user logs into the
    # portal. This helps prevent phishing. Set this to false if you need the

    # guest user and the authenticated user to have the same session.
    #
    # Set this to false if the property "company.security.auth.requires.https"
    # is set to true and you want to maintain the same credentials across HTTP
    # and HTTPS sessions.
    #
    session.enable.phishing.protection=true
did-this-article-resolve-your-issue

legacy-knowledge-base