Added role based authorization base

This commit is contained in:
2025-10-17 18:31:07 +02:00
parent 97e0d2523a
commit 724bb95809
5 changed files with 75 additions and 4 deletions

View File

@@ -297,7 +297,7 @@ public async Task CreateAsset(LdapAttributeSet attributeSet)
}
if (CompareStringToSha256(password, user.UserPassword))
{
return new() { Success = true };
return new() { Success = true, UserModel = user };
}
return new() { Success = false, AuthenticationState = UserNotAuthenticatedReason.InvalidCredentials };
}