File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,12 @@ public function actionGetByEmail($email)
9393 */
9494 public function actionGetByAuthclient ($ name , $ id )
9595 {
96- $ user = User::findOne (['auth_mode ' => $ name , 'authclient_id ' => $ id ]);
96+ $ user = User::find ()
97+ ->alias ('u ' )
98+ ->joinWith ('auths a ' , false )
99+ ->where (['u.auth_mode ' => $ name , 'u.authclient_id ' => $ id ])
100+ ->orWhere (['a.source ' => $ name , 'a.source_id ' => $ id ])
101+ ->one ();
97102
98103 if ($ user === null ) {
99104 return $ this ->returnError (404 , 'User not found! ' );
Original file line number Diff line number Diff line change 11Changelog
22=========
33
4- 0.10.4 (Unreleased)
5- ---------------------------
4+ 0.10.4 (September 9, 2024)
5+ --------------------------
6+ - Enh #180 : Improved ` user/get-by-authclient ` endpoint to support additional authentication clients.
67- Enh #181 : Added user profile ` image_url ` and ` banner_url `
78- Enh #179 : Added new ` resend ` and ` cancel ` endpoints for user invite
89
You can’t perform that action at this time.
0 commit comments