Skip to content

Commit

Permalink
File path issue fix attempt 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
onerdy committed Mar 17, 2024
1 parent 1772403 commit c062ecd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Services/GeneratorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public static string GeneratePassphrase(PassphraseOptions passphraseOptions)
{
string password = "";

string[] standardWords = File.ReadAllLines(@"./Data/StandardWords.txt");
string[] offensiveWords = File.ReadAllLines(@"./Data/OffensiveWords.txt");
string[] standardWords = File.ReadAllLines("./wwwroot/Data/StandardWords.txt");
string[] offensiveWords = File.ReadAllLines("./wwwroot/Data/OffensiveWords.txt");
string[] seedWords = [];

if (passphraseOptions.DictionaryType == "Standard")
Expand Down
18 changes: 3 additions & 15 deletions appsettings.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
//{
// "Logging": {
// "LogLevel": {
// "Default": "Information",
// "Microsoft.AspNetCore": "Warning"
// }
// },
// "AllowedHosts": "*"
//}

{
"DetailedErrors": true, // turns on CircuitOptions.DetailedErrors
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.SignalR": "Debug" // turns on SignalR debugging
"Microsoft.AspNetCore": "Warning"
}
}
},
"AllowedHosts": "*"
}
5 changes: 5 additions & 0 deletions passgen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<DockerfileContext>.</DockerfileContext>
</PropertyGroup>

<ItemGroup>
<None Include="wwwroot\Data\OffensiveWords.txt" />
<None Include="wwwroot\Data\StandardWords.txt" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c062ecd

Please sign in to comment.