Skip to content

Commit

Permalink
Merge pull request #624 from Blazam-App/v1-0-8
Browse files Browse the repository at this point in the history
Add Require Password Change display for users
  • Loading branch information
jacobsen9026 authored Nov 1, 2024
2 parents 47b084c + fb3fdd6 commit 1e3088b
Show file tree
Hide file tree
Showing 16 changed files with 6,310 additions and 326 deletions.
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

0 comments on commit 1e3088b

Please sign in to comment.