mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* User: Add name and image URL More personalization options, prerequisite for btcpayserver/app#3. Additionally: - Remove ambigious and read-only username from manage view. - Improve email verification conditions and display. - Greenfield: Update current user. Prerequisite for btcpayserver/app#13. * Refactor UpdateCurrentUser * Replace new columns by UserBlob * Update email check and add test case for mailbox addresses --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
23 lines
696 B
C#
23 lines
696 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class StoreUsersViewModel
|
|
{
|
|
public class StoreUserViewModel
|
|
{
|
|
public string Email { get; set; }
|
|
public string Role { get; set; }
|
|
public string Name { get; set; }
|
|
public string ImageUrl { get; set; }
|
|
public string Id { get; set; }
|
|
}
|
|
[Required]
|
|
[EmailAddress]
|
|
public string Email { get; set; }
|
|
public string StoreId { get; set; }
|
|
public string Role { get; set; }
|
|
public List<StoreUserViewModel> Users { get; set; }
|
|
}
|
|
}
|