Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions WP_Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Wordpress Auth0 Integration
* Description: Implements the Auth0 Single Sign On solution into Wordpress
* Version: 1.1.7
* Version: 1.1.8
* Author: Auth0
* Author URI: https://auth0.com
*/
Expand Down Expand Up @@ -488,9 +488,9 @@ private static function login_user( $userinfo, $data ){
}

}

// See if there is a user in the auth0_user table with the user info client id
$user = self::findAuth0User($userinfo->user_id);

if (!is_null($user)) {
// User exists! Log in
self::updateAuth0Object($userinfo);
Expand Down Expand Up @@ -525,7 +525,7 @@ private static function login_user( $userinfo, $data ){
$user_id = $joinUser->ID;
} elseif ($allow_signup) {
// If we are here, we need to create the user
$user_id = (int)WP_Auth0_Users::create_user($userinfo);
$user_id = WP_Auth0_Users::create_user($userinfo);

// Check if user was created

Expand Down Expand Up @@ -644,7 +644,7 @@ private static function install_db(){
}

public static function check_update() {
if ( get_site_option( 'auth0_db_version' ) !== AUTH0_DB_VERSION) {
if ( get_site_option( 'auth0_db_version' ) != AUTH0_DB_VERSION) {
self::install_db();
}
}
Expand Down