Files
SocialPub/PrivaPub.ClientModels/User/DeletePersonaForm.cs
T

19 lines
775 B
C#
Raw Normal View History

using PrivaPub.ClientModels.Resources;
using System.ComponentModel.DataAnnotations;
namespace PrivaPub.ClientModels.User
{
// A login deletes one of its own personas (POST /clientapi/avatar/private/delete), and with it the groups the persona
// owns, with its password again, as it deletes itself.
public class DeletePersonaForm
{
[Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource)),
Display(Name = "AvatarId", ResourceType = typeof(FieldsNameResource))]
public string AvatarId { get; set; }
[Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource)),
Display(Name = "Password", ResourceType = typeof(FieldsNameResource))]
public string Password { get; set; }
}
}