Skip to content

Commit

Permalink
fix(templates): Fix change phone number issue in Boilerplate project …
Browse files Browse the repository at this point in the history
…template #7701 (#7702)
  • Loading branch information
ysmoradi authored Jun 5, 2024
1 parent f221e5a commit 0bed93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public async Task SendChangePhoneNumberToken(SendPhoneTokenRequestDto request, C

var token = await userManager.GenerateChangePhoneNumberTokenAsync(user!, request.PhoneNumber!);

await smsService.SendSms(Localizer[nameof(AppStrings.ChangePhoneNumberTokenSmsText), token], user.PhoneNumber!, cancellationToken);
await smsService.SendSms(Localizer[nameof(AppStrings.ChangePhoneNumberTokenSmsText), token], request.PhoneNumber!, cancellationToken);
}

[HttpPost]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ public partial class SignUpPage
private bool isWaiting;
private string? message;
private ElementReference messageRef = default!;
private readonly SignUpRequestDto signUpModel = new();
private readonly SignUpRequestDto signUpModel = new() { UserName = Guid.NewGuid().ToString() };


[AutoInject] private ILocalHttpServer localHttpServer = default!;
[AutoInject] private IIdentityController identityController = default!;


private async Task DoSignUp()
{
if (isWaiting) return;
Expand All @@ -38,8 +37,6 @@ private async Task DoSignUp()

try
{
signUpModel.UserName = Guid.NewGuid().ToString(); // You can also bind the UserName property to an input

await identityController.SignUp(signUpModel, CurrentCancellationToken);

var queryParams = new Dictionary<string, object?>();
Expand Down

0 comments on commit 0bed93d

Please sign in to comment.