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

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

投稿者

Kanchan Bisht

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

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