<?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>Change login behaviour to modal popup only</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120621240" />
  <subtitle>Change login behaviour to modal popup only</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120621240</id>
  <updated>2026-04-06T03:59:52Z</updated>
  <dc:date>2026-04-06T03:59:52Z</dc:date>
  <entry>
    <title>Change login behaviour to modal popup only</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621239" />
    <author>
      <name>Uwe Peters</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621239</id>
    <updated>2021-02-17T12:36:18Z</updated>
    <published>2021-02-17T12:36:18Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am trying to change the behaviour of the liferay login in Liferay
  CE 7.3.5ga6. &lt;br /&gt;Our customer wants that there is no login page and
  the login modal is the only login form that can be shown to the user.&lt;/p&gt;
&lt;p&gt;By default liferay is redirecting me to &lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&amp;amp;p_p_lifecycle=0&amp;amp;p_p_state=maximized&amp;amp;saveLastPath=false&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;everytime if I&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;type in wrong credentials (and it shows me there the login wrong
    credentials error message).&lt;/li&gt;
  &lt;li&gt;try to open a link to a 'private page'. A page that has no guest permission.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Is there any way to disable the redirect to the loginPortlet in
  maximized state and show the login modal?&lt;/p&gt;
&lt;p&gt;What I want to achieve:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Instead of the default behaviour described above I want to show
    the login modal popup. &lt;/li&gt;
  &lt;li&gt;If the user types in bad credentials I want to show the login
    modal popup again with the bad credentials errormessage in it. &lt;/li&gt;
  &lt;li&gt;If I click on a private page link (a page that has no guest
    permission) the login popup should show up and if I login correctly
    the redirect to the private page is done.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Uwe Peters</dc:creator>
    <dc:date>2021-02-17T12:36:18Z</dc:date>
  </entry>
</feed>
