Release Testing Bugs (#1790)

* Stop showing loading indicator when no next/prev chapter

* Fixed a bug where manage collections wasn't named correctly in UI.

* Slight tweaks on email flow
This commit is contained in:
Joe Milazzo 2023-02-16 06:39:40 -06:00 committed by GitHub
parent e50f5ece1e
commit 00f153d8ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 66 additions and 12 deletions

View file

@ -869,17 +869,25 @@ public class AccountController : BaseApiController
_logger.LogCritical("[Email Migration]: Token {UserName}: {Token}", user.UserName, token);
if (await _accountService.CheckIfAccessible(Request))
{
await _emailService.SendMigrationEmail(new EmailMigrationDto()
try
{
EmailAddress = user.Email,
Username = user.UserName,
ServerConfirmationLink = emailLink,
InstallId = (await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.InstallId)).Value
});
await _emailService.SendMigrationEmail(new EmailMigrationDto()
{
EmailAddress = user.Email,
Username = user.UserName,
ServerConfirmationLink = emailLink,
InstallId = (await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.InstallId)).Value
});
}
catch (Exception ex)
{
_logger.LogError(ex, "There was an issue resending invite email");
return BadRequest("There was an issue resending invite email");
}
return Ok(emailLink);
}
return Ok("The server is not accessible externally. Please ");
return Ok("The server is not accessible externally");
}
/// <summary>