add developer status to session and login response
This commit is contained in:
parent
0e616c9223
commit
3754ec2300
3 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue