Skip to content

Commit

Permalink
Added new field twoFactorEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
idelcano committed Sep 3, 2024
1 parent e2e76cb commit 6adf814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ export class TwoFactorUserD2Repository implements TwoFactorUserRepository {
)
.getData();
return responses["users"].map(user => {
const twoFA = user.userCredentials.twoFA || user.userCredentials.twoFactorEnabled;
return {
id: user.id,
username: user.username,
twoFA: user.twoFA,
twoFA: twoFA ?? false,
};
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface PermissionFixerUserCredentials {
uid: Id;
disabled: boolean;
twoFA: boolean;
twoFactorEnabled: boolean;
username: string;
userRoles: NamedRef[];
}
Expand Down

0 comments on commit 6adf814

Please sign in to comment.