Skip to content

Commit

Permalink
Fixing an issue created by a previous change for logging in with pass…
Browse files Browse the repository at this point in the history
…words longer than 64 characters, which broke logging in with a password shorter than 64 characters.
  • Loading branch information
tpill90 committed Dec 21, 2024
1 parent 7d96ee5 commit 6736dde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SteamPrefill/Extensions/MiscExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ public static async Task<string> ReadPasswordAsync(this IAnsiConsole console, st
.Secret());

// For whatever reason Steam allows you to enter as long of a password as you'd like, and silently truncates anything after 64 characters
return password.Substring(0, 64);
if (password.Length > 64)
{
return password.Substring(0, 64);
}

return password;
});
return await promptTask.WaitAsync(TimeSpan.FromSeconds(30));
}
Expand Down

0 comments on commit 6736dde

Please sign in to comment.