We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4dabdb0 + 8362be1 commit b1c2e4aCopy full SHA for b1c2e4a
src/api/api.service.ts
@@ -564,11 +564,12 @@ export class ApiService {
564
authHeader,
565
);
566
if (statusFA === FAStatus.USER_EXISTS) {
567
- let registrationId = null;
+ let registrationId = null, registeredRoles = [];
568
if (user.registrations) {
569
user.registrations.map((item) => {
570
if (item.applicationId == loginDto.applicationId) {
571
registrationId = item.id;
572
+ registeredRoles = item.roles;
573
}
574
});
575
@@ -581,7 +582,7 @@ export class ApiService {
581
582
registrations: [
583
{
584
applicationId: loginDto.applicationId,
- roles: loginDto.roles ?? [],
585
+ roles: registeredRoles,
586
id: registrationId,
587
},
588
],
0 commit comments