<?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>login.events.post not getting triggered  in Liferay 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120703166" />
  <subtitle>login.events.post not getting triggered  in Liferay 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120703166</id>
  <updated>2026-04-04T08:54:36Z</updated>
  <dc:date>2026-04-04T08:54:36Z</dc:date>
  <entry>
    <title>RE: RE: login.events.post not getting triggered  in Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703680" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703680</id>
    <updated>2021-04-01T14:21:34Z</updated>
    <published>2021-04-01T14:21:34Z</published>
    <summary type="html">&lt;p&gt;No need for any portal-ext.properties any more - you'll just need to
  deploy the declarative service (@Component).&lt;br /&gt;Check if it's indeed
  active: Go to Gogo Shell and enter &amp;quot;inspect cap service
  &lt;em&gt;bundleid&lt;/em&gt;&amp;quot; (of course with your bundle's own id (find out
  which by typing &amp;quot;lb&amp;quot; in gogo shell). As your service here
  might be simplified, there might be unmet dependencies, leading to
  your portlet being available, but the post-login action unavailable.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-04-01T14:21:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: login.events.post not getting triggered  in Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120701751" />
    <author>
      <name>test test</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120701751</id>
    <updated>2021-04-01T14:06:22Z</updated>
    <published>2021-04-01T14:05:17Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf! Thanks for the reply... In my code i have some more
  functions other than System.out.println, which i did not add here. I
  have this CustomLoginPostAction in one of my portlet. As we upgraded
  from 6.1 to 7.1 this post.login.event stopped working. Whether this
  works in Portlets or should i create new Liferay Module Project.
  Should we add this post.login.events to the &lt;font
  face="monospace"&gt;portal-ext.properties &lt;/font&gt;at root folder of
  Liferay? Thanks in advance!&lt;/p&gt;</summary>
    <dc:creator>test test</dc:creator>
    <dc:date>2021-04-01T14:05:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: login.events.post not getting triggered  in Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703234" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703234</id>
    <updated>2021-04-01T10:08:15Z</updated>
    <published>2021-04-01T10:08:15Z</published>
    <summary type="html">&lt;p&gt;I've seen System.out.println() being swallowed often. Please use
  logging, or set a breakpoint in the debugger, i.e. make extra extra
  &lt;em&gt;extra&lt;/em&gt; sure that your code is not called. Just observing that
  a System.out message doesn't appear is not enough. (use log.error, or
  make sure that info messages are indeed displayed)&lt;/p&gt;
&lt;p&gt;You also don't need the portal-ext.properties entry. And note that
  your changes should go to portal-ext.properties (not
  portal.properties) anyway&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2021-04-01T10:08:15Z</dc:date>
  </entry>
  <entry>
    <title>login.events.post not getting triggered  in Liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703165" />
    <author>
      <name>test test</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120703165</id>
    <updated>2021-04-01T14:20:59Z</updated>
    <published>2021-04-01T07:51:39Z</published>
    <summary type="html">&lt;p&gt;In portal.properties &lt;/p&gt;
&lt;p&gt;login.events.post = com.test.CustomLoginPostAction&lt;/p&gt;
&lt;p&gt;Below is my CustomLoginPostAction, But its not getting triggered. any
  help is appreciated.&lt;/p&gt;
&lt;p&gt;@Component(&lt;br /&gt;        immediate = true, property = {&lt;br /&gt;      
           &amp;quot;key=login.events.post&amp;quot;,&lt;br /&gt;        },&lt;br /&gt;    
     service = LifecycleAction.class&lt;br /&gt;    )&lt;br /&gt;public class
  CustomLoginPostAction implements LifecycleAction {&lt;br /&gt;    &lt;br /&gt;  
   private static final Log LOG =
  LogFactory.getLog(CustomLoginPostAction.class);&lt;br /&gt;    private
  boolean logUserLoginDate = true;&lt;/p&gt;
&lt;p&gt;    @Override&lt;br /&gt;    public void
  processLifecycleEvent(LifecycleEvent lifecycleEvent) throws
  ActionException {&lt;br /&gt;        // TODO Auto-generated method
  stub&lt;br /&gt;      
   System.out.println(&amp;quot;CustomLoginPostAction-------------------event
  triggered&amp;quot;);&lt;br /&gt;         if (logUserLoginDate) {&lt;br /&gt;         
    LOG.info(&amp;quot;DEVELOPER says hello my login&amp;quot;);&lt;/p&gt;
&lt;p&gt;            // Other functions called here&lt;/p&gt;
&lt;p&gt;        }&lt;/p&gt;
&lt;p&gt;    }&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt; &lt;/p&gt;</summary>
    <dc:creator>test test</dc:creator>
    <dc:date>2021-04-01T07:51:39Z</dc:date>
  </entry>
</feed>
