MDL-65518 badges: Require the issuercontact
For Badges V2 we can't use just any email address to issue badges, it needs to be a valid account on the backpack.
This commit is contained in:
+1
-1
@@ -1195,7 +1195,7 @@ function badges_verify_site_backpack() {
|
||||
|
||||
// Now attempt a login with these credentials.
|
||||
$result = $backpackapi->authenticate();
|
||||
if ($result === false || !empty($result->error)) {
|
||||
if (empty($result) || !empty($result->error)) {
|
||||
$warning = $backpackapi->get_authentication_error();
|
||||
|
||||
$params = ['id' => $backpack->id, 'action' => 'edit'];
|
||||
|
||||
Reference in New Issue
Block a user