Legacy Knowledge Base
公開されました Jul. 2, 2025

スクリーンネームのバリデーションエラー

Written By

Rodrigo Mier

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 特定のScreenameを選択できない。 以下のような原因が考えられます:
    1. この具体的な画面名はすでに決定しています
    2. このスクリーンネームは、文字がスクリーンネームの文字政治に従っていないため、検証されません。
    3. LDAPやSingle-signOnなどの外部認証サービスポリシーと競合している

環境

  • Liferay Portal 5.x
  • Liferay Portal 6.x
  • DXP 7.x

解像度

  1. スクリーン名が既に選択されている場合、このフィールドはユニークであるため、別のものを選択する必要があります。
  2. スクリーンネームバリデータポリティクスは、以下のプロパティで変更することができます:
    • Screen Nameに数字を許可する場合:
      • users.screen.name.allow.numeric=true
    • Scree Nameの特殊文字を許可するため:
      • users.screen.name.special.characters=-._
  3. 外部認証サービスに問題がある場合は、その設定やポリシーを確認してください。

追加情報

  • 以下のプロパティで、スクリーンネームを自動生成することも可能です:
    • users.screen.name.always.autogenerate=true
  • 検証政治をカスタマイズする必要がある場合 com.liferay.portal.security.auth.ScreenNameValidator を実装したクラス名を入力します。 Screen name validatorについての詳細はこちら .
Did this article resolve your issue ?

Legacy Knowledge Base