Skip to content

Commit

Permalink
Merge pull request #118 from rtCamp/feature/changelog-1.2.3
Browse files Browse the repository at this point in the history
Updated changelog for 1.3.0
  • Loading branch information
abhishekfdd authored Sep 28, 2022
2 parents 7bacce7 + f48c87b commit 326b759
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
10 changes: 1 addition & 9 deletions login-with-google.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Login with Google
* Description: Allow users to login/register via Google.
* Version: 1.2.3
* Version: 1.3.0
* Author: rtCamp
* Author URI: https://rtcamp.com
* Text Domain: login-with-google
Expand Down Expand Up @@ -112,14 +112,6 @@ function container(): Container {
function plugin(): Plugin {
static $plugin;

$reauth = filter_input( INPUT_GET, 'reauth', FILTER_SANITIZE_STRING );
if ( null !== $reauth ) {
if ( ! empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
wp_safe_redirect( wp_login_url() );
exit;
}
}

if ( null !== $plugin ) {
return $plugin;
}
Expand Down
23 changes: 20 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: Google login, sign in, sso, oauth, authentication, sign-in, single sign-on
Requires at least: 5.0
Tested up to: 5.8.1
Requires PHP: 7.4
Stable tag: 1.2.2
Stable tag: 1.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -141,6 +141,16 @@ Once you're ready to send a pull request, please run through the following check

== Changelog ==

= 1.3.0 =
* Feature: Gutenberg block for Login button.
* Feature: Save user first name and last name on registration.
* Add: PHP 8.0 compatibility.
* Add: Added hook after user authentication.
* Add: Added hook after user is logged-in.
* Fix: set login cookie with shortcode display.
* Fix: Redirection back to login page issue.
* Updated npm packages and laravel-mix.

= 1.2.2 =
* Maintenance release. Requires PHP >= 7.4.

Expand Down Expand Up @@ -176,5 +186,12 @@ Once you're ready to send a pull request, please run through the following check

== Upgrade Notice ==

= 1.2.2 =
* Maintenance release. Requires PHP >= 7.4.
= 1.3.0 =
* Feature: Gutenberg block for Login button.
* Feature: Save user first name and last name on registration.
* Add: PHP 8.0 compatibility.
* Add: Added hook after user authentication.
* Add: Added hook after user is logged-in.
* Fix: set login cookie with shortcode display.
* Fix: Redirection back to login page issue.
* Updated npm packages and laravel-mix.
2 changes: 1 addition & 1 deletion src/Modules/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function authenticate( $user = null ) {
/**
* Fires once the user has been authenticated via Google OAuth.
*
* @since 1.2.3
* @since 1.3.0
*
* @param WP_User $user WP User object.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function authenticate( stdClass $user ): WP_User {
/**
* Fires once the user has been authenticated.
*
* @since 1.2.3
* @since 1.3.0
*
* @param WP_User $user_wp WP User data object.
* @param stdClass $user User data object returned by Google.
Expand Down

0 comments on commit 326b759

Please sign in to comment.