Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Require Password Change display for users #624

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion BLAZAM/BLAZAM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<ServerGarbageCollection>false</ServerGarbageCollection>
<AssemblyVersion>1.0.7</AssemblyVersion>
<Version>2024.10.31.0016</Version>
<Version>2024.11.01.0042</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RootNamespace>BLAZAM</RootNamespace>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
Expand Down Expand Up @@ -58,6 +58,10 @@
<PackageReference Include="Cassia" Version="2.0.0.60" />
<PackageReference Include="DuoUniversal" Version="1.2.5" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
Expand Down
638 changes: 324 additions & 314 deletions BLAZAM/Pages/Users/ViewUser.razor

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion BLAZAMActiveDirectory/Adapters/AccountDirectoryAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public class AccountDirectoryAdapter : GroupableDirectoryAdapter, IAccountDirect
public virtual bool CanDisable { get => HasActionPermission(ObjectActions.Disable); }

public virtual bool CanUnlock { get => HasActionPermission(ObjectActions.Unlock); }




public bool CanSearchDisabled
{
Expand Down
5 changes: 5 additions & 0 deletions BLAZAMActiveDirectory/Interfaces/IAccountDirectoryAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public interface IAccountDirectoryAdapter : IGroupableDirectoryAdapter
/// </summary>
bool Enabled { get; set; }

/// <summary>
/// Indicates whether the current web user can reset the password for this <see cref="IAccountDirectoryAdapter"/>
/// </summary>
bool CanSetPassword { get; }

/// <summary>
/// Indicates whether the current web user can search disabled <see cref="IAccountDirectoryAdapter"/>'s
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion BLAZAMDatabase/Context/DatabaseContextBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
new ObjectAction() { Id = 6, Name = "Rename", Action = ActiveDirectoryObjectAction.Rename },
new ObjectAction() { Id = 7, Name = "Move", Action = ActiveDirectoryObjectAction.Move },
new ObjectAction() { Id = 8, Name = "Create", Action = ActiveDirectoryObjectAction.Create },
new ObjectAction() { Id = 9, Name = "Delete", Action = ActiveDirectoryObjectAction.Delete }
new ObjectAction() { Id = 9, Name = "Delete", Action = ActiveDirectoryObjectAction.Delete },
new ObjectAction() { Id = 10, Name = "Set Password", Action = ActiveDirectoryObjectAction.SetPassword }

);
modelBuilder.Entity<ActionAccessMapping>(entity =>
Expand Down
Loading