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

This commit is contained in:
Tygozwolle
2026-07-27 12:17:55 +02:00
parent bf261923e2
commit da66ba5239
2 changed files with 13 additions and 0 deletions
@@ -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();