mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Added role based authorization base
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user