File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4- Unreleased
4+ 1.2.4 (February 25, 2023)
55--------------------
66- Fix: Don't add to group a user that is not active
7+ - Fix: PHP 8.1 warning in the module settings if empty values
78
891.2.3 (February 20, 2023)
910--------------------
Original file line number Diff line number Diff line change @@ -244,11 +244,11 @@ public function save()
244244 $ module = Yii::$ app ->getModule ('auth-keycloak ' );
245245
246246 $ module ->settings ->set ('enabled ' , $ this ->enabled );
247- $ module ->settings ->set ('clientId ' , trim ($ this ->clientId ));
248- $ module ->settings ->set ('clientSecret ' , trim ($ this ->clientSecret ));
249- $ module ->settings ->set ('realm ' , trim ($ this ->realm ));
250- $ module ->settings ->set ('baseUrl ' , rtrim (trim ($ this ->baseUrl ), '/ ' ));
251- $ module ->settings ->set ('usernameMapper ' , trim ($ this ->usernameMapper ));
247+ $ module ->settings ->set ('clientId ' , trim (( string ) $ this ->clientId ));
248+ $ module ->settings ->set ('clientSecret ' , trim (( string ) $ this ->clientSecret ));
249+ $ module ->settings ->set ('realm ' , trim (( string ) $ this ->realm ));
250+ $ module ->settings ->set ('baseUrl ' , rtrim (trim (( string ) $ this ->baseUrl ), '/ ' ));
251+ $ module ->settings ->set ('usernameMapper ' , trim (( string ) $ this ->usernameMapper ));
252252 if (!$ this ->title ) {
253253 $ this ->title = static ::DEFAULT_TITLE ;
254254 }
Original file line number Diff line number Diff line change 33 "name" : " Keycloak Sign-In" ,
44 "description" : " Integrating Keycloak Sign-In (OAuth 2.0)" ,
55 "keywords" : [" auth" , " keycloak" ],
6- "version" : " 1.2.3 " ,
6+ "version" : " 1.2.4 " ,
77 "humhub" : {
88 "minVersion" : " 1.12"
99 },
You can’t perform that action at this time.
0 commit comments