Rev 1266 | Rev 1293 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1266 | Rev 1267 | ||
---|---|---|---|
Line 423... | Line 423... | ||
423 | return false; // throw new OIDplusException(_L('Received error status code: %1',$json['error'])); |
423 | return false; // throw new OIDplusException(_L('Received error status code: %1',$json['error'])); |
424 | } else { |
424 | } else { |
425 | return false; // throw new OIDplusException(_L('Received error status code: %1',$json['status'])); |
425 | return false; // throw new OIDplusException(_L('Received error status code: %1',$json['status'])); |
426 | } |
426 | } |
427 | } else if ($json['status'] == 99/*Hash conflict*/) { |
427 | } else if ($json['status'] == 99/*Hash conflict*/) { |
428 | OIDplus::logger()->log("[WARN]A!", "Removing SystemID and key pair because there is a hash conflict with another OIDplus system!"); |
428 | OIDplus::logger()->log("V2:[WARN]A", "Removing SystemID and key pair because there is a hash conflict with another OIDplus system!"); |
429 | 429 | ||
430 | // Delete the system ID since we have a conflict with the 31-bit hash! |
430 | // Delete the system ID since we have a conflict with the 31-bit hash! |
431 | OIDplus::config()->setValue('oidplus_private_key', ''); |
431 | OIDplus::config()->setValue('oidplus_private_key', ''); |
432 | OIDplus::config()->setValue('oidplus_public_key', ''); |
432 | OIDplus::config()->setValue('oidplus_public_key', ''); |
433 | 433 | ||
Line 508... | Line 508... | ||
508 | if ((time()-$last_ping >= $last_ping_interval)) { |
508 | if ((time()-$last_ping >= $last_ping_interval)) { |
509 | try { |
509 | try { |
510 | $this->sendRegistrationQuery(); |
510 | $this->sendRegistrationQuery(); |
511 | } catch (\Exception $e) { |
511 | } catch (\Exception $e) { |
512 | // Don't do anything, because we don't want that a failed registration query blocks the system |
512 | // Don't do anything, because we don't want that a failed registration query blocks the system |
513 | OIDplus::logger()->log('[WARN]A!', 'System registration query crashed: %1', $e->getMessage()); |
513 | OIDplus::logger()->log('V2:[WARN]A', 'System registration query crashed: %1', $e->getMessage()); |
514 | } |
514 | } |
515 | } |
515 | } |
516 | } |
516 | } |
517 | } |
517 | } |
518 | } |
518 | } |