Skip to content

Commit

Permalink
Fix auto verify oauth email (#3413)
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen authored Jul 8, 2023
1 parent ffed268 commit 2e76ae0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/Core/pages/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr13
* NamelessMC version 2.1.2
*
* License: MIT
*
Expand Down Expand Up @@ -278,8 +278,7 @@
$data['id'],
);
$auto_verify_oauth_email = $data['email'] === Input::get('email')
&& NamelessOAuth::getInstance()->hasVerifiedEmail($data['provider'], $data['data'])
&& DB::getInstance()->get('users', ['email', $data['email']])->count() === 0;
&& NamelessOAuth::getInstance()->hasVerifiedEmail($data['provider'], $data['data']);

Session::delete('oauth_register_data');
}
Expand Down

0 comments on commit 2e76ae0

Please # to comment.