<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Changing Login Error Messages</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7000605" />
  <subtitle>Changing Login Error Messages</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7000605</id>
  <updated>2026-04-06T16:40:42Z</updated>
  <dc:date>2026-04-06T16:40:42Z</dc:date>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110576966" />
    <author>
      <name>Chanakya P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110576966</id>
    <updated>2023-01-24T06:25:47Z</updated>
    <published>2018-07-17T08:31:19Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Can any one help me out.&lt;/p&gt;</summary>
    <dc:creator>Chanakya P</dc:creator>
    <dc:date>2018-07-17T08:31:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110541119" />
    <author>
      <name>Chanakya P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110541119</id>
    <updated>2023-01-24T06:25:47Z</updated>
    <published>2018-07-13T07:00:20Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;Can you please help me out, How to do in Liferay DXP.&lt;/p&gt;
&lt;p&gt;How to set parameters in custom authenticator ?&lt;/p&gt;
&lt;p&gt;How to get those parameter related exception message in login.jsp ?&lt;/p&gt;</summary>
    <dc:creator>Chanakya P</dc:creator>
    <dc:date>2018-07-13T07:00:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13612372" />
    <author>
      <name>Michael Charles</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13612372</id>
    <updated>2012-04-23T21:33:51Z</updated>
    <published>2012-04-23T21:33:51Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;David H Nebinger:&lt;/div&gt;&lt;blockquote&gt;Nope, it all relies upon the language bundle for the rendering.&lt;br /&gt;&lt;br /&gt;You can change the language bundle to use parameters, then set those parameters in your custom authenticator to get the same result.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Michael Charles</dc:creator>
    <dc:date>2012-04-23T21:33:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13610781" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13610781</id>
    <updated>2012-04-23T19:40:04Z</updated>
    <published>2012-04-23T19:40:04Z</published>
    <summary type="html">Nope, it all relies upon the language bundle for the rendering.&lt;br /&gt;&lt;br /&gt;You can change the language bundle to use parameters, then set those parameters in your custom authenticator to get the same result.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2012-04-23T19:40:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13610763" />
    <author>
      <name>Michael Charles</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13610763</id>
    <updated>2012-04-23T19:37:14Z</updated>
    <published>2012-04-23T19:37:14Z</published>
    <summary type="html">Is there a way to change this dynamically form a class that implements Authenticator()? &lt;br /&gt;&lt;br /&gt;..for example I&amp;#39;d like to change the value for &amp;#34;authentication-failed&amp;#34; based on a return status.</summary>
    <dc:creator>Michael Charles</dc:creator>
    <dc:date>2012-04-23T19:37:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7064785" />
    <author>
      <name>Sarika Nair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7064785</id>
    <updated>2011-01-12T07:21:42Z</updated>
    <published>2011-01-12T07:21:42Z</published>
    <summary type="html">Hi Aaron,&lt;br /&gt;&lt;br /&gt;Go into login.jsp in Login portlet,u will find the following code there:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= AuthException.class %&amp;gt;&amp;#34; message=&amp;#34;authentication-failed&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= CookieNotSupportedException.class %&amp;gt;&amp;#34; message=&amp;#34;authentication-failed-please-enable-browser-cookies&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= NoSuchUserException.class %&amp;gt;&amp;#34; message=&amp;#34;please-enter-a-valid-login&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= PasswordExpiredException.class %&amp;gt;&amp;#34; message=&amp;#34;your-password-has-expired&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= UserEmailAddressException.class %&amp;gt;&amp;#34; message=&amp;#34;please-enter-a-valid-login&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= UserLockoutException.class %&amp;gt;&amp;#34; message=&amp;#34;this-account-has-been-locked&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= UserPasswordException.class %&amp;gt;&amp;#34; message=&amp;#34;please-enter-a-valid-password&amp;#34; /&amp;gt;&lt;br /&gt;		&amp;lt;liferay-ui:error exception=&amp;#34;&amp;lt;%= UserScreenNameException.class %&amp;gt;&amp;#34; message=&amp;#34;please-enter-a-valid-screen-name&amp;#34; /&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;inorder to change the error message follow the example given below.&lt;br /&gt;&lt;br /&gt;Eg: Suppose you want to change the error message for &amp;#34;please-enter-a-valid-login&amp;#34;&lt;br /&gt;    Go to &lt;strong&gt;Language.properties&lt;/strong&gt;, find the message assigned to it&lt;br /&gt;    Eg: please-enter-a-valid-login=Please enter a valid login.&lt;br /&gt;&lt;br /&gt;     Paste your customized message in the following files&lt;br /&gt;     &lt;strong&gt;language-ext.properties&lt;/strong&gt; and &lt;strong&gt;language-ext_en.properties&lt;/strong&gt;&lt;br /&gt;     please-enter-a-valid-login=Login failed,Please try again.&lt;br /&gt;&lt;br /&gt;    deploy the changes and restart the server.&lt;br /&gt;&lt;br /&gt;I hope this works for you.</summary>
    <dc:creator>Sarika Nair</dc:creator>
    <dc:date>2011-01-12T07:21:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7037675" />
    <author>
      <name>Aaron Bryenton</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7037675</id>
    <updated>2011-01-10T13:44:41Z</updated>
    <published>2011-01-10T13:44:41Z</published>
    <summary type="html">Thanks for the response.&lt;br /&gt;&lt;br /&gt;So I can change the name of the messages in the language file. Where do I go to delete one of the messages?&lt;br /&gt;&lt;br /&gt;Both the messages are still showing, I only need on to be displayed.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Aaron</summary>
    <dc:creator>Aaron Bryenton</dc:creator>
    <dc:date>2011-01-10T13:44:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7000833" />
    <author>
      <name>Pranay R Patadiya</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7000833</id>
    <updated>2011-01-06T13:17:13Z</updated>
    <published>2011-01-06T13:17:13Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Login error message is just a message written in language property files.&lt;br /&gt;&lt;br /&gt;For authentication fail the language key is authentication-failed.&lt;br /&gt;&lt;br /&gt;For English language you need to over ride Language_en_EN.properties, make a hook for that.&lt;br /&gt;&lt;br /&gt;Other messages you can find in the same file of portal source.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Pranay Patadiya</summary>
    <dc:creator>Pranay R Patadiya</dc:creator>
    <dc:date>2011-01-06T13:17:13Z</dc:date>
  </entry>
  <entry>
    <title>Changing Login Error Messages</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7000604" />
    <author>
      <name>Aaron Bryenton</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7000604</id>
    <updated>2011-01-06T13:07:40Z</updated>
    <published>2011-01-06T13:07:40Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I was wondering how to go about changing the login errors you receive if logging in incorrectly.&lt;br /&gt;&lt;br /&gt;Currently you receive:&lt;br /&gt;&lt;br /&gt;&amp;#34;You have entered invalid data. Please try again&amp;#34;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&amp;#34;Authentication failed. Please try again&amp;#34;&lt;br /&gt;&lt;br /&gt;I would like to have that changed to one generic error message:&lt;br /&gt;&lt;br /&gt;&amp;#34;Login failed; Please try again&amp;#34;&lt;br /&gt;&lt;br /&gt;Thanks for the help!&lt;br /&gt;Aaron</summary>
    <dc:creator>Aaron Bryenton</dc:creator>
    <dc:date>2011-01-06T13:07:40Z</dc:date>
  </entry>
</feed>
