Skip to content

Commit

Permalink
Fix qrcode generation without password
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom committed Aug 17, 2023
1 parent 633100d commit 6df09d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/app/infrastructure/utils/formatting-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export function formatWiFiConfig(ssid: string, encryption: string, password?: st
escapeSpecialCharactersForWiFiConfig(ssid) +
`;T:` +
encryption +
`;P:` +
escapeSpecialCharactersForWiFiConfig(password) +
(password ? `;P:` + escapeSpecialCharactersForWiFiConfig(password) : ``) +
`;;`
);
}
Expand Down

0 comments on commit 6df09d2

Please sign in to comment.