-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.8
-
2
-
HQ 2023 Sprint I3.1 Moppies
jverdaguer faced this issue while working on MDL-78102.
Requirements
- One account on https://badgr.com/.
- Configure your site to send emails (you can use mailcacher or similar).
Steps to reproduce it
- Login as user.
- Go to User preferences and click the Backpack settings link.
- Connect to https://badgr.io using a valid email account and password.
- Open mailcacher (or the email system you configure for your site) and confirm the email that the user has received.
- Check the backpack status is connected.
- Without logging out or changing the browser, click the "Disconnect" button.
- Click the Connect to backpack button (leaving the password empty or using a wrong password).
Expected behaviour
Some errors are received because the account is not valid.
Current behaviour
The email is sent (although the user credentials are not valid).
Workaround
If you close the session, the issue is fixed. That's why, right now, authenticate() in badges/classes/backpack_api.php is using information stored in $SESSION.
- Discovered while testing
-
MDL-78102 Check if the password and email fields are empty when creating an external backpack
-
- Closed
-