Add Application configuration #11

Merged
Wesser merged 128 commits from feat/add-setup into release/v1.0.0 2024-06-01 07:35:30 +03:00
Showing only changes of commit 9bf9eabad7 - Show all commits

View File

@ -20,7 +20,7 @@ public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigur
if (!notConfigureService.IsMaintenanceMode) if (!notConfigureService.IsMaintenanceMode)
throw new ControllerArgumentException( throw new ControllerArgumentException(
"The token cannot be generated because the server has been configured. " + "The token cannot be generated because the server has been configured. " +
$"If you need to restart the configuration, then delete the \"{GeneralConfig.FilePath}\" file and restart the application."); $"If you need to restart the configuration, then delete the \"{PathBuilder.Combine(GeneralConfig.FilePath)}\" file and restart the application.");
var token = new byte[32]; var token = new byte[32];
RandomNumberGenerator.Create().GetBytes(token); RandomNumberGenerator.Create().GetBytes(token);