commit
a187bfb450
|
|
@ -525,7 +525,7 @@ public class UserService : IUserService
|
|||
|
||||
public async Task<bool> VerifyEmailExisting(string email)
|
||||
{
|
||||
if (string.IsNullOrEmpty(email))
|
||||
if (string.IsNullOrWhiteSpace(email))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
@ -542,7 +542,7 @@ public class UserService : IUserService
|
|||
|
||||
public async Task<bool> VerifyPhoneExisting(string phone, string regionCode)
|
||||
{
|
||||
if (string.IsNullOrEmpty(phone))
|
||||
if (string.IsNullOrWhiteSpace(phone))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using BotSharp.Abstraction.Users.Enums;
|
||||
using BotSharp.Core.Infrastructures;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace BotSharp.OpenAPI.ViewModels.Users;
|
||||
|
|
@ -58,8 +57,10 @@ public class UserViewModel
|
|||
UserName = user.UserName,
|
||||
FirstName = user.FirstName,
|
||||
LastName = user.LastName,
|
||||
Email = Utilities.HideMiddleDigits(user.Email, true),
|
||||
Phone = Utilities.HideMiddleDigits((!string.IsNullOrWhiteSpace(user.Phone) ? user.Phone.Replace("+86", String.Empty) : user.Phone)),
|
||||
//Email = Utilities.HideMiddleDigits(user.Email, true),
|
||||
//Phone = Utilities.HideMiddleDigits((!string.IsNullOrWhiteSpace(user.Phone) ? user.Phone.Replace("+86", String.Empty) : user.Phone)),
|
||||
Email = user.Email,
|
||||
Phone = !string.IsNullOrWhiteSpace(user.Phone) ? user.Phone.Replace("+86", String.Empty) : user.Phone,
|
||||
Type = user.Type,
|
||||
Role = user.Role,
|
||||
Source = user.Source,
|
||||
|
|
|
|||
Loading…
Reference in a new issue