Only link existing users if the setting is enabled

isekai
Robert Staddon 9 years ago
parent 494cb43c49
commit 9371b8132f

@ -413,6 +413,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
} }
// Before trying to create the user, first check if a user with the same email already exists // Before trying to create the user, first check if a user with the same email already exists
if( $this->settings->link_existing_users ) {
if( $uid = email_exists( $email ) ) { if( $uid = email_exists( $email ) ) {
return $this->update_existing_user( $uid, $subject_identity ); return $this->update_existing_user( $uid, $subject_identity );
} }

Loading…
Cancel
Save