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:
Damyon Wiese
2019-05-10 15:51:27 +08:00
parent 04a6cd7b44
commit 084a42f9f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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'];