Skip to content

Commit

Permalink
Update ExtLoginController.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Sep 23, 2021
1 parent f5b410a commit 9965fb9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -135,7 +135,7 @@ public function oauth2(){
));
$res_array = json_decode($res, true);
if($res_array){
$username = $res_array['username'] ;
$username = $res_array['preferred_username'] ? $res_array['preferred_username'] : $res_array['username'] ;
$info = D("User")->where("username='%s'" ,array($username))->find();
if(!$info){
D("User")->register($username,md5($username.time().rand()));
Expand Down

0 comments on commit 9965fb9

Please sign in to comment.