Title: Problem with login model
Last modified: November 27, 2023

---

# Problem with login model

 *  Resolved [vince08](https://wordpress.org/support/users/vince08/)
 * (@vince08)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/problem-with-login-model/)
 * Hi,
 * I used the Forminator plugin to generate a user login window on a test site. 
   The installation went well and when you enter the correct username and password,
   the user is redirected to the correct page.
 * The problem is that if we know the URL of the destination page, we can access
   this page by simply typing its URL and therefore without having to log in.
 * How can I fix this?
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/problem-with-login-model/#post-17232134)
 * Hi [@vince08](https://wordpress.org/support/users/vince08/)
 * I hope you’re well today!
 * I understand your concerns but I’m afraid it doesn’t really have much to do with
   Forminator itself.
 * Forminator is not a “content protection” or “access control” plugin and it doesn’t
   provide any tools to “lock” access to pages or posts. It does have a login form
   feature built-in but it’s just so you cold create your own custom front-end login
   form that works just like regular login at /wp-login.php page. It’s not for content
   access control – it’s just a regular user login form, like the standard WordPress
   one but possible to add on front-end instead.
 * What you would need to do here then would be to actually protect the page/URL
   itself by making it available only to logged-in users.
 * Two simplest ways to achieve that would be:
 * 1. if users who are meant to see that page after login have either admin or editor
   role, you can simply set the page/post “Visibility” to “Private” in a post/page
   editor
 * 2. if those users are of different user-roles, you can use this free plugin to“
   lock” such pages to make them available to only logged-in users:
 * [https://wordpress.org/plugins/simple-page-access-restriction/](https://wordpress.org/plugins/simple-page-access-restriction/)
 * – install and enable this plugin on site
    – go to “Simple Page Access Restriction”
   in site’s back-end – set the “Login Redirect Type” to “Page” – in “Login Redirect
   Page” option select the page where you put your Forminator login form
 * – (optional) – depending on the URL that you want to be “logged-in only) make
   sure that either “Posts” or “Pages” option is checked in “Supported post Type(
   s) line there
 * – save settings
 * – and then simply edit the post/page that should be protected by login and check
   the “For logged-in Users Only” option under “Simple Page Access Restriction”,
   like this
 * [https://app.screencast.com/qjEP0yOaAMtqh](https://app.screencast.com/qjEP0yOaAMtqh)
 * As a result:
 * a) Already logged-in users: if they go to that URL directly, they’ll see the 
   content
 * b) guests – if they go to that URL directly, they’ll be redirected to the page
   with Forminator login form, where they’ll be able to login and, if the form has
   redirect already set, they’ll be redirected back to that URL and see the content.
 * Best regards,
    Adam
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/problem-with-login-model/#post-17248003)
 * Hello [@vince08](https://wordpress.org/support/users/vince08/) ,
 * We haven’t heard from you for over five days, so it looks like Adam’s response
   helped with your query.
 * Feel free to re-open this topic if needed.
 * Kind regards
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with login model’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * 2 replies
 * 3 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/problem-with-login-model/#post-17248003)
 * Status: resolved