File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
BotSharp.Core/Users/Services
BotSharp.OpenAPI/ViewModels/Users Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ public async Task<bool> VerifyUserNameExisting(string userName)
525525
526526 public async Task < bool > VerifyEmailExisting ( string email )
527527 {
528- if ( string . IsNullOrEmpty ( email ) )
528+ if ( string . IsNullOrWhiteSpace ( email ) )
529529 {
530530 return true ;
531531 }
@@ -542,7 +542,7 @@ public async Task<bool> VerifyEmailExisting(string email)
542542
543543 public async Task < bool > VerifyPhoneExisting ( string phone , string regionCode )
544544 {
545- if ( string . IsNullOrEmpty ( phone ) )
545+ if ( string . IsNullOrWhiteSpace ( phone ) )
546546 {
547547 return true ;
548548 }
Original file line number Diff line number Diff line change 11using BotSharp . Abstraction . Users . Enums ;
2- using BotSharp . Core . Infrastructures ;
32using System . Text . Json . Serialization ;
43
54namespace BotSharp . OpenAPI . ViewModels . Users ;
@@ -58,8 +57,10 @@ public static UserViewModel FromUser(User user)
5857 UserName = user . UserName ,
5958 FirstName = user . FirstName ,
6059 LastName = user . LastName ,
61- Email = Utilities . HideMiddleDigits ( user . Email , true ) ,
62- Phone = Utilities . HideMiddleDigits ( ( ! string . IsNullOrWhiteSpace ( user . Phone ) ? user . Phone . Replace ( "+86" , String . Empty ) : user . Phone ) ) ,
60+ //Email = Utilities.HideMiddleDigits(user.Email, true),
61+ //Phone = Utilities.HideMiddleDigits((!string.IsNullOrWhiteSpace(user.Phone) ? user.Phone.Replace("+86", String.Empty) : user.Phone)),
62+ Email = user . Email ,
63+ Phone = ! string . IsNullOrWhiteSpace ( user . Phone ) ? user . Phone . Replace ( "+86" , String . Empty ) : user . Phone ,
6364 Type = user . Type ,
6465 Role = user . Role ,
6566 Source = user . Source ,
You can’t perform that action at this time.
0 commit comments