Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78179

Connect to backpack doesn't authenticate() properly in some cases

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78179-401
    • MDL-78179-master
    • Hide

      Requirements

      • One account on https://badgr.com/
      • Configure your site to send emails (you can use mailcacher or similar).

      Testing instructions

      1. Login as user.
      2. Go to User preferences and click the Backpack settings link.
      3. Connect to https://badgr.io using a valid email account and password.
      4. Open mailcacher (or the email system you configure for your site) and verify the email following the URL in the email that the user has received.
      5. Check the backpack status is connected.
      6. Without logging out or changing the browser, click the "Disconnect" button.
      7. Click the Connect to backpack button using a wrong password.
      8. Check an error message is displayed with something like "Invalid credentials given".
      9. Check the email is not sent.
      Show
      Requirements One account on  https://badgr.com/ .  Configure your site to send emails (you can use mailcacher or similar). Testing instructions 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 verify the email following the URL in 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 using a wrong password. Check an error message is displayed with something like "Invalid credentials given". Check the email is not sent.
    • 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

      1. Login as user.
      2. Go to User preferences and click the Backpack settings link.
      3. Connect to https://badgr.io using a valid email account and password.
      4. Open mailcacher (or the email system you configure for your site) and confirm the email that the user has received.
      5. Check the backpack status is connected.
      6. Without logging out or changing the browser, click the "Disconnect" button.
      7. 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.

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Laurent David Laurent David
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 42 minutes
                1h 42m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.