add developer status to session and login response

This commit is contained in:
Elijah R 2024-04-07 19:48:24 -04:00
parent 0e616c9223
commit 3754ec2300
3 changed files with 6 additions and 2 deletions

View file

@ -9,4 +9,5 @@ public class LoginResponse
public string? email { get; set; }
public string? username { get; set; }
public int rank { get; set; }
public bool? developer { get; set; } = null;
}

View file

@ -8,4 +8,5 @@ public class SessionResponse
public string? username { get; set; }
public string? email { get; set; }
public int rank { get; set; }
public bool? developer { get; set; } = null;
}

View file

@ -477,7 +477,8 @@ public static class Routes
banned = user.Banned,
username = user.Username,
email = user.Email,
rank = (int)user.Rank
rank = (int)user.Rank,
developer = user.Developer
}, Utilities.JsonSerializerOptions);
}
@ -723,7 +724,8 @@ public static class Routes
verificationRequired = true,
email = user.Email,
username = user.Username,
rank = (int)user.Rank
rank = (int)user.Rank,
developer = user.Developer
});
}
// Check max sessions