Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify password length and add error for password on non standard ASCII. #1515

Closed
wants to merge 3 commits into from

Conversation

Alstruit
Copy link

@Alstruit Alstruit commented Mar 3, 2025

Steam will only accept password length up to 64 characters.

Reference:
SteamRE/DepotDownloader#601
SteamRE/DepotDownloader#597

Alstruit and others added 2 commits March 3, 2025 03:36
Steam will only accept password length up to 64 characters.
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
@xPaw
Copy link
Member

xPaw commented Mar 3, 2025

I'm not really a fan of doing this in the library (this also misses this in SteamUser.LogOn btw), especially because without replacing non-ascii characters like Valve does this logic isn't entirely correct.

Copy link
Member

@yaakov-h yaakov-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just log the warning but not trim.

Any consumer can trim at any point, but if Valve change their behaviour I don't want consumers to need to upgrade before they can log back in.

@Alstruit Alstruit changed the title Trim password to 64 characters. Notify password length and add error for password on non standard ASCII. Mar 3, 2025
@Alstruit
Copy link
Author

Alstruit commented Mar 3, 2025

On the Unicode part. Steam does display an error if the password is not standard ASCII.

@Alstruit Alstruit force-pushed the password_64_library branch from 209a189 to 7baed81 Compare March 3, 2025 20:53
@Alstruit Alstruit marked this pull request as draft March 3, 2025 21:50
@Alstruit Alstruit force-pushed the password_64_library branch from 7baed81 to 000e54c Compare March 3, 2025 22:45
Notify password length is greater 64.
Throw an error since Steam does reject non standard ASCII characters.
@Alstruit Alstruit force-pushed the password_64_library branch from 000e54c to e700ecb Compare March 3, 2025 23:18
@Alstruit Alstruit marked this pull request as ready for review March 4, 2025 09:46
@Alstruit Alstruit closed this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants