I Love PHPMaker

... because it gets even more powerful and flexible!!

  • About
  • Terms and Conditions
  • Membership Options
  • Sitemap
  • Downloads
    • PHPMaker Extensions Download
    • PHPMaker Projects Download
    • PHP Report Maker Extensions Download
I Love PHPMaker » Tips and Trick » How to Display the Custom Message in Change Password Page When Password Has Expired in Web Applications that Generated by PHPMaker 10
How to Make Submit Button Which Will be Disabled on Click Event in Web Applications that Generated by PHPMaker 10.0.2
How to Change Menu Item Text in Web Applications that Generated by PHPMaker 10.0.2

October 29, 2013

How to Display the Custom Message in Change Password Page When Password Has Expired in Web Applications that Generated by PHPMaker 10

When the password has expired in web applications that generated by PHPMaker, then there will be a Change Password page shown up, including the standard message: Password Expired. Please change password.. It means that the system will force users to change their password immediately, otherwise they cannot login into the system properly. This is one of the best security features that provided by PHPMaker in web applications that generated by it.

Sometimes, end users will get confused when they saw that Change Password page that enforces them to change the password, even the standard message above has been shown up. They usually will get panic for a moment when they are getting that message. Moreover they will not be able to login before they change the password. So, that would be better if we display an additional message that will explain in more detail about what steps that should be done by users in order to get logged in properly.

This following trick will show you how we can display the custom message besides that standard message above easily and quickly. We will use the certain Server Event to display it nicely. In other words, we will not customize the generated code nor the template to display that custom message.

[hidepost]

  1. Open .pmp (PHPMaker Project) file by using PHPMaker application.
  2. Go to Server Events, Client Scripts and Custom Templates) tab, then expand the following location: Server Events -> Global -> All Pages -> User_PasswordExpired, and insert the following code:

    CurrentPage()->setFailureMessage("This following <strong>Change Password</strong> page is being shown up since your password has expired. You have to change your password immediately, otherwise, you cannot continue login to the system normally. If you forgot your password, then you may reset your password by clicking on <strong>Forgot Password</strong> link on the Login page. Use the password that you will get from the email after recovering your password in <strong>Old Password</strong>, and then type your new password in <strong>New Password</strong> and <strong>Confirm Password</strong> directives respectively.");
    
  3. If you don't want to use setFailureMessage, then you can use setSuccessMessage instead to show the message in the information mode.
  4. Save the project, then re-generate the script files using PHPMaker as always.

[/hidepost]

Article by Masino Sinaga / Tips and Trick / Change Password, change password page, password expiry time, PHPMaker 10.0.2, PHPMaker 10.0.3, PHPMaker 10.0.4, Server Events, User_PasswordExpired 2 Comments

How to Make Submit Button Which Will be Disabled on Click Event in Web Applications that Generated by PHPMaker 10.0.2
How to Change Menu Item Text in Web Applications that Generated by PHPMaker 10.0.2

Comments

  1. saleh alayafi says

    November 26, 2015 at 3:47 am

    hello
    please help
    When you request the password This error :SMTP connect() failed
    I tried a yahoo and gmail and Mail Site
    The same error: SMTP connect() failed

    What’s the solution ?

    Outgoing Mail (SMTP) Server

    Server – smtp.mail.yahoo.com
    Port – 465 or 587
    Requires SSL – Yes
    Requires authentication – Yes

    SMTP Server: smtp.mail.yahoo.com
    SMTP Server Port: 465
    SMTP Server Username: Full Email Address of Desired Account
    SMTP Server Password: Correct PW
    Sender Email: Full Email Address of Desired Account
    Recipient Email: Full Email Address of Desired Recipient
    Security: SSL

    (mysqlt): SET NAMES ‘utf8’
    Error (0):

    (mysqlt): SELECT * FROM `users` WHERE (`Email` = ‘sale1h@hotmail.com’)
    Error (0):

    I don’t know what is wrong. Please help
    Thank you!

    Log in to Reply
    • Masino Sinaga says

      November 30, 2015 at 12:59 pm

      This error is not related to Masino Extensions. This is related to the PHPMailer, the PHP library that used by PHPMaker.

      So please try to understand, we must wait for the next build version of PHPMaker which will include the latest version of that PHPMailer.

      In addition, I saw your post from PHPMaker Discussion Forum: http://www.hkvforums.com/viewtopic.php?f=4&t=37919&p=112733#p112733 and it has been resolved already.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • A New PHPMaker 2025 Project File Is Released
  • PHPMaker 2025 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2025 Is Released!
  • A New PHPMaker 2024 Project File Is Released
  • PHPMaker 2024 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2024 Is Released!
  • PHPMakerProjects.com, For Those Who Need PHPMaker Project Sample
  • A New PHPMaker 2023 Project File Is Released
  • PHPMaker 2023 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2023 Is Released!

Search

Recent Comments

  • Masino Sinaga on Masino Extensions for PHPMaker 2024 Is Released!
  • Masino Sinaga on A New PHPMaker 2024 Project File Is Released
  • Masino Sinaga on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on Masino Extensions for PHPMaker 2024 Is Released!

Demo Website

  • Demo of I Love PHPMaker 2025 (MasinoExtensions).
  • Stock Inventory Management for PHPMaker 2025.

Another Demo

The following template are not available in this site (must be purchased separately)

  • PHPMaker v2018 Horizontal Vertical Template.
  • PHPMaker v2017 Horizontal Vertical Template.

Demo Explanation

Stock Inventory Management is the good project for your reference, since it uses the real example in the real world. Many useful features you can use from this project, such as how to add the Thousand and Decimal separator character, and also how to calculate multiple row in Grid-Add when End-Users are entering data into the Grid-Add mode.

Categories

  • Customize Template (103)
  • General (4)
  • PHP Report Maker (17)
  • PHP Report Maker Extensions (2)
  • PHPMaker Extensions (84)
  • PHPMaker Projects (7)
  • Tips and Trick (72)

Articles based on version

  • PHPMaker 2025
  • PHPMaker 2024
  • PHPMaker 2023
  • PHPMaker 2022
  • PHPMaker 2021
  • PHPMaker 2020
  • PHPMaker 2019
  • PHPMaker 2018
  • PHPMaker 2017.0.7
  • PHPMaker 12.0.7
  • PHPMaker 11.0.6
  • PHPMaker 10.0.5
  • PHPMaker 9.2.0
  • PHPMaker 8.0.3
  • PHP Report Maker 12

(c) I Love PHPMaker 2010 - 2025 by Masino Sinaga | WordPress | Log in | Back to top