This topic is locked

Guest login to an edit page with save button enabled

8/8/2025 11:28:28
PHPRunner General questions
J
jacktonghk authorDevClub member

I built a website similar to members. The different is my website do not allow sign up. All the new members are created by administrator and a link to the edit page (which allows new user to create their password) is send via email. I use database to set up security, I can direct the new user to the edit page as guest, but on the edit page, SAVE button is not working. How can I allow guest user to update on the edit page? Thanks.

Best regards,
Jack Tong

ChatGPT 8/8/2025

In PHPRunner, guest users typically have limited permissions, and by default, they may not have the ability to update records. To allow guest users to save updates on the edit page, you will need to adjust the permissions and settings in your PHPRunner project.

Here’s how you can do that:

  1. Open Your PHPRunner Project: Launch PHPRunner and open the project where you have your member management system.


  2. Set Up User Permissions:

    • Go to the Security section in PHPRunner.
    • You will see options for different user roles (Admin, User, Guest, etc.).
    • Click on the Guest role or any other specific role you are using for your new users.
    • Make sure to enable the permission for "Edit" under the table that corresponds to the user records. This will allow guest users to access the edit page and perform updates.


  3. Configure the Edit Page:

    • Navigate to the Edit Page settings for the relevant table.
    • Ensure that the fields that need to be updated (like the password field) are set to be editable for guest users.
    • Check any conditions or validation that might restrict saving the changes.


  4. Check for User Authentication: If you've implemented user authentication, ensure that the logic allows guest users to access the edit functionality without being prompted for a login.


  5. Testing:

    • After making these changes, it's crucial to test the functionality as a guest user to ensure everything works as intended.
    • Make sure to send the edit link to a test email and attempt to update the user information to verify that the SAVE button is functional.


  6. Review Security Settings: Keep in mind that allowing guest users to edit records can pose a security risk. Make sure to implement checks to ensure that only authorized edits can be made (e.g., verifying the user's identity through a unique token in the link).


  7. Consider Using a Token: To enhance security, consider including a unique token in the edit link that verifies the user's identity when they attempt to save changes.



By following these steps, you should be able to allow guest users to update their information on the edit page in PHPRunner. If you run into any specific issues, please provide more details, and I can assist you further.