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

the POST /users/:username/login route is broken. #360

Open
samankittani opened this issue Jun 3, 2024 · 0 comments
Open

the POST /users/:username/login route is broken. #360

samankittani opened this issue Jun 3, 2024 · 0 comments

Comments

@samankittani
Copy link

Route: POST /users/:username/login
Description: Logs a user into the system.
Body: password

This route does not work properly. If you have an account, and curl this url:
curl -X POST https://cloud.snap.berkeley.edu/users/someuser/login -H "Content-Type: application/json" -d '{"password": "SomePassword"}
should successfully log in, but it fails when the password string is concatenated with the salt. The salt is NIL, so concatenation fails.

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

No branches or pull requests

1 participant