Skip to content

Commit

Permalink
HumHub .14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Mar 10, 2023
1 parent a1a9a4b commit 72cfa78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/auth/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
use humhub\modules\rest\components\BaseController;
use humhub\modules\rest\definitions\UserDefinitions;
use humhub\modules\rest\models\ConfigureForm;
use humhub\modules\user\authclient\AuthClientHelpers;
use humhub\modules\user\models\forms\Login;
use humhub\modules\user\models\User;
use humhub\modules\user\services\AuthClientService;
use Yii;
use yii\web\JsonParser;

Expand Down Expand Up @@ -74,7 +74,7 @@ public static function authByUserAndPassword($username, $password)
return null;
}

$user = AuthClientHelpers::getUserByAuthClient($login->authClient);
$user = (new AuthClientService($login->authClient))->getUser();
return $user;
}

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

0.8.0 (March 10, 2023)
----------------------
- Fix: Update for HumHub version 1.14

0.7.1 (January 6, 2023)
-----------------------
- Fix #102: Update for version 1.13
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"keywords": [
"api", "rest"
],
"version": "0.7.1",
"version": "0.8.0",
"homepage": "https://github.com/humhub/rest",
"humhub": {
"minVersion": "1.13"
"minVersion": "1.14"
},
"screenshots": []
}

0 comments on commit 72cfa78

Please sign in to comment.