Password changing

This commit is contained in:
Aurélie Delhaie
2022-05-29 17:55:34 +02:00
parent 4cf1d4b3b0
commit 2e76c8cd6a
23 changed files with 325 additions and 113 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace OpenSaveCloudClient.Models.Remote
{
public class NewPassword
{
[JsonPropertyName("password")]
public string Password { get; set; }
[JsonPropertyName("verify_password")]
public string VerifyPassword { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace OpenSaveCloudClient.Models.Remote
{
public class User
{
[JsonPropertyName("id")]
public long Id { get; set; }
[JsonPropertyName("username")]
public string Username { get; set; }
[JsonPropertyName("role")]
public string Role { get; set; }
[JsonPropertyName("is_admin")]
public bool IsAdmin { get; set; }
}
}