Skip to content

Commit

Permalink
fix(Intune): correctly iterate when ssoInTuneAuthUser is provided (#1502
Browse files Browse the repository at this point in the history
)

* fix(Intune): correctly iterate when ssoInTuneAuthUser is provided

We need to iterate the values, not the indexes.

closes: #1466

* add release notes for 1.12.2 release
  • Loading branch information
fmoessbauer authored Nov 28, 2024
1 parent 4d87ad1 commit 09f49fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/intune/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function processInTuneAccounts(resp, ssoInTuneAuthUser) {
inTuneAccount = response.accounts[0];
console.debug('Using first available InTune account (' + inTuneAccount.username + ')');
} else {
for (const account in response.accounts) {
for (const account of response.accounts) {
if (account.username == ssoInTuneAuthUser) {
inTuneAccount = account;
console.debug('Found matching InTune account (' + inTuneAccount.username + ')');
Expand Down
7 changes: 7 additions & 0 deletions com.github.IsmaelMartinez.teams_for_linux.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
<url type="bugtracker">https://github.com/IsmaelMartinez/teams-for-linux/issues</url>
<launchable type="desktop-id">com.github.IsmaelMartinez.teams_for_linux.desktop</launchable>
<releases>
<release version="1.12.2" date="2024-11-28">
<description>
<ul>
<li>Fix selection of InTune user when explicitly pinning it via `ssoInTuneAuthUser`</li>
</ul>
</description>
</release>
<release version="1.12.1" date="2024-11-25">
<description>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teams-for-linux",
"version": "1.12.1",
"version": "1.12.2",
"main": "app/index.js",
"description": "Unofficial client for Microsoft Teams for Linux",
"homepage": "https://github.com/IsmaelMartinez/teams-for-linux",
Expand Down

0 comments on commit 09f49fb

Please sign in to comment.