mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 00:38:38 +00:00
Refactor deserialization and authentication (#550)
* Refactor deserialization and more * Refactor authentication flow * Fix unit tests * Make deserialization better
This commit is contained in:
parent
505b5eb03b
commit
b3a00da554
48 changed files with 575 additions and 589 deletions
|
@ -1,7 +1,6 @@
|
|||
@page "/admin/users"
|
||||
@using LBPUnion.ProjectLighthouse.Administration
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||
@using LBPUnion.ProjectLighthouse.Types
|
||||
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.Admin.AdminPanelUsersPage
|
||||
|
||||
@{
|
||||
|
@ -61,7 +60,7 @@
|
|||
<select name="role" class="ui selection dropdown">
|
||||
@foreach (PermissionLevel level in Enum.GetValues<PermissionLevel>())
|
||||
{
|
||||
if(level < 0) continue;
|
||||
if (level < 0) continue;
|
||||
string selected = level == user.PermissionLevel ? " selected" : "";
|
||||
|
||||
<option value="@((int)level)"@selected>@level.ToString()</option>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue