feat: implement RadiusService for guest registration, session management, and usage tracking
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m41s
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m41s
This commit is contained in:
@@ -336,6 +336,13 @@ public class RadiusService : IRadiusService
|
||||
if (profile.Status == "Revoked")
|
||||
{
|
||||
profile.Status = "Active";
|
||||
|
||||
// Remove the zeroed NT-Password that was set on revoke
|
||||
var ntPasswordCheck = await _db.RadCheck.FirstOrDefaultAsync(rc => rc.Username == profile.Username && rc.Attribute == "NT-Password");
|
||||
if (ntPasswordCheck != null)
|
||||
{
|
||||
_db.RadCheck.Remove(ntPasswordCheck);
|
||||
}
|
||||
}
|
||||
|
||||
await _db.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user