• Pre Login and Post Login Action In Liferay 7 DXP

    Pre Login and Post Login Action In Liferay 7 DXP

    In order to create a Pre Login Action in liferay, create an Activator Module Project with the Project Template of "activator", after creating the Module Right Click on the module to create a component class as shown in the below image.




    Select the "Login Pre Action" component class template and give a component class name as shown in the image.



    After creating the component you will be able to see the LoginPreAction Class.



    Post Login Action
    For Post Login Action the property key will be "key=login.events.post"



    buil.gradle

    dependencies { compileOnly group: "org.osgi", name: "org.osgi.core", version: "6.0.0" compile group: "org.osgi", name:"org.osgi.service.component.annotations", version:"1.3.0" compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0" compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1" compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0" compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0" compileOnly group: "jstl", name: "jstl", version: "1.2" compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0" }

    Source Code


  • 12 comments:

    1. At the point when the client click on the logout connect or when he leaves that site the login data might be erased. hotmail

      ReplyDelete
    2. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 토토커뮤니티

      ReplyDelete
    3. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. 먹튀검증

      ReplyDelete
    4. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. 대전1인샵

      ReplyDelete
    5. Merely a smiling visitant here to share the love (:, btw outstanding style. test bank nursing

      ReplyDelete
    6. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 먹튀검증

      ReplyDelete
    7. I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us. 먹튀검증

      ReplyDelete
    8. I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.. 토토커뮤니티

      ReplyDelete
    9. I curious more interest in some of them hope you will give more information on this topics in your next articles. Tipnovel

      ReplyDelete