== Private Site with Custom Login Page ==
Contributors: joaorosa
Plugin URI: 
Tags: private website, private site, custom login, login page, private intranet, private site intranet, lock-in website, only logged in users, force login, lock site, intranet, login system
Author URI: https://globalisp.pt
Author: Global ISP
Donate link: 
Requires at least: 3.0
Tested up to: 4.8
Stable tag: 1.1.0
Version: 1.1.0

Make your website private! Only logged in users can view your website. Perfect for intranets or in development websites.

== Description ==

This plugin makes the users login in order to visit the website. Everytime a guest user tries to access the website it will be redirected to a login page of your choice.

The plugin is very easy to configure: You only need to choose the login page, the page to which he user is redirected after the login and place the shortcode [private-intranet-login] in your login page.
That's all. The plugin will do the rest for you.

The "/wp-login" page will still be available.

== Features ==

* Compatible with any theme
* Translation ready
* Make your website private - Only logged in user can access it
* Redirect Guest users to the login page
* Choose a custom login page (instead of wp-admin/wp-login)
* Choose the page to which users should be redirected after the login


== Installation ==

1. Go to "Plugins" --> "Add New" --> "Upload Plugin"
1. Upload the file "private-intranet.zip"
1. Activate the plugin in the "Plugins" menu.

== Frequently Asked Questions ==

= I'm trapped and can't acces the login page I defined! What can I do? =

Just access /wp-login and login to your website. For example: http://example.com/wp-login.

= How do I configure the plugin? =

1. Create a Login page and add the shortcode [private-intranet-login] to the content of the page
2. Go to the menu "Private Intranet", choose the desired login page and page to which the user should be redirected to after login.
3. You are all set!

= Is the plugin translation ready? =

Yes, the plugin is translation ready. Right now, the plugin is only in English and Portuguese.


== Screenshots ==

1. Settings Page.
2. Default Login Page.

== Changelog ==

= 1.1.1 =

* Fixed bug where the user wasn't being redirected to the defined "Redirect After Login" page.

= 1.1 =
* Fixed bug where, if no login page was set, the plugin would send the user into a redirect loop
* Fixed bug where "/wp-login" wasn't available.
* Added functionality: When a logged in user tries to access the defined login page, it will be redirected to the defined "Redirect After Login" page

= 1.0 =
* Plugin Launch

== Upgrade Notice ==

* Bug fixes
* Functionality added