Skip to content

Commit

Permalink
fix(kc-apps): use sub
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreozoux committed Sep 3, 2024
1 parent 4e01d25 commit 45d6d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerfiles/keycloak-apps/mappers/matrix-localpart.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ function convertBase(str, fromBase, toBase) {
// convert it to base36
// 28nosjs1wcj64

exports = convertBase(uuid.replace(/-/gi, '').slice(-16), 16, 36);
exports = convertBase(user.getFirstAttribute("sub").replace(/-/gi, '').slice(-16), 16, 36);

0 comments on commit 45d6d2d

Please sign in to comment.