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

fix: do not encode username, password [LIBS-625] #852

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Jun 14, 2024

This fixes an issue where the username and password were being encoded before being passed to api/login.

I had copied some of the code from the old login logic, but that is using Content-Type:application/x-www-form-urlencoded, so requires encoding, whereas the post with json body, does not need that encoding 🤦‍♂️.

Before
payload like {"username": "admin", "password": "District1%23"}

After
payload like {"username": "admin", "password": "District1#"}

@tomzemp tomzemp requested review from KaiVandivier and a team June 14, 2024 13:06
Copy link
Contributor

@KaiVandivier KaiVandivier left a comment

Choose a reason for hiding this comment

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

Tested it out; looks good! 🙂

@tomzemp tomzemp merged commit 2fb4272 into master Jun 18, 2024
6 checks passed
@tomzemp tomzemp deleted the LIBS-625/fix-login-modal-encoding branch June 18, 2024 07:08
dhis2-bot added a commit that referenced this pull request Jun 18, 2024
## [11.4.2](v11.4.1...v11.4.2) (2024-06-18)

### Bug Fixes

* do not encode username, password ([#852](#852)) ([2fb4272](2fb4272))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 11.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

dhis2-bot added a commit that referenced this pull request Jun 20, 2024
# [12.0.0-alpha.2](v12.0.0-alpha.1...v12.0.0-alpha.2) (2024-06-20)

### Bug Fixes

* clean up for plugins [LIBS-620] ([#851](#851)) ([13af3b5](13af3b5))
* do not encode username, password ([#852](#852)) ([2fb4272](2fb4272))
* don't start plugins for apps without a plugin entrypoint ([#850](#850)) ([a89d4cf](a89d4cf))

### Features

* parse pluginType from d2 config to add to manifest.webapp ([#849](#849)) ([c1dae23](c1dae23))
* start plugin and app separately [LIBS-391] [LIBS-392] ([#848](#848)) ([82003e7](82003e7))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0-alpha.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants