Skip to content

Commit

Permalink
Add MfaActive to UserInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jul 10, 2024
1 parent 5cd81c1 commit 9bdaeca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Nager.Authentication.Abstraction/Models/UserInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public class UserInfo
public DateTime? LastFailedValidationTimestamp { get; set; }

public DateTime? LastSuccessfulValidationTimestamp { get; set; }

public bool MfaActive { get; set; }
}
}
3 changes: 2 additions & 1 deletion src/Nager.Authentication/Services/UserManagementService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ private UserInfo MapUserInfo(UserEntity userEntity)
Lastname = userEntity.Lastname,
Roles = RoleHelper.GetRoles(userEntity.RolesData),
LastFailedValidationTimestamp = userEntity.LastFailedValidationTimestamp,
LastSuccessfulValidationTimestamp = userEntity.LastSuccessfulValidationTimestamp
LastSuccessfulValidationTimestamp = userEntity.LastSuccessfulValidationTimestamp,
MfaActive = userEntity.MfaActive
};
}

Expand Down

0 comments on commit 9bdaeca

Please sign in to comment.