From 44aed9cc9b578e3b38dcbc721679357b5322432d Mon Sep 17 00:00:00 2001 From: Indy Griffiths <32345766+indygriffiths@users.noreply.github.com> Date: Tue, 9 Jul 2019 22:08:23 +1200 Subject: [PATCH 1/2] Fix overseas RealMe contact phone Came up during an integration test that the phone number is wrong (see https://www.realme.govt.nz/contact-us/) --- lang/en.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lang/en.yml b/lang/en.yml index b5960cd..bdd6b47 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -5,16 +5,16 @@ en: LOGINBUTTON: Login SilverStripe\RealMe\RealMeService: ERROR_AUTHNFAILED: 'You have chosen to leave RealMe.' - ERROR_GENERAL: 'RealMe reported a serious application error. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_INTERNAL: 'RealMe was unable to process your request due to a RealMe internal error. Please try again. If the problem persists, please contact the RealMe Help Desk. From New Zealand dial 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_NOAUTHNCONTEXT: 'RealMe reported a serious application error with the message ''No AuthN Context''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_NOAVAILABLEIDP: 'RealMe reported that the TXT service or the token service is not available. You may try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand dial 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_NOPASSIVE: 'RealMe reported a serious application error with the message ''No Passive''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_REQUESTDENIED: 'RealMe reported a serious application error with the message ''Request Denied''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' - ERROR_REQUESTUNSUPPORTED: 'RealMe reported a serious application error with the message ''Request Unsupported''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + ERROR_GENERAL: 'RealMe reported a serious application error. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_INTERNAL: 'RealMe was unable to process your request due to a RealMe internal error. Please try again. If the problem persists, please contact the RealMe Help Desk. From New Zealand dial 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_NOAUTHNCONTEXT: 'RealMe reported a serious application error with the message ''No AuthN Context''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_NOAVAILABLEIDP: 'RealMe reported that the TXT service or the token service is not available. You may try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand dial 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_NOPASSIVE: 'RealMe reported a serious application error with the message ''No Passive''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_REQUESTDENIED: 'RealMe reported a serious application error with the message ''Request Denied''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' + ERROR_REQUESTUNSUPPORTED: 'RealMe reported a serious application error with the message ''Request Unsupported''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ERROR_TIMEOUT: 'Your RealMe session has timed out – please try again.' ERROR_UNKNOWNPRINCIPAL: 'You are unable to use RealMe to verify your identity if you do not have a RealMe account. Visit the RealMe home page for more information and to create an account.' - ERROR_UNSUPPORTEDBINDING: 'RealMe reported a serious application error with the message ''Unsupported Binding''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + ERROR_UNSUPPORTEDBINDING: 'RealMe reported a serious application error with the message ''Unsupported Binding''. Please try again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' SilverStripe\RealMe\Task\RealMeSetupTask: BUILD_FINISH: 'RealMe setup complete. Please copy the XML into a file for upload to the {env} environment or DIA to complete the integration' ERR_CERT_DIR_MISSING: 'No certificate dir is specified. Define the REALME_CERT_DIR environment variable in your .env file' From 3cdbc9d0fe373d14c0081f59bf933db0a95e3b6d Mon Sep 17 00:00:00 2001 From: Indy Griffiths <32345766+indygriffiths@users.noreply.github.com> Date: Tue, 9 Jul 2019 22:44:10 +1200 Subject: [PATCH 2/2] Update phone numbers --- src/RealMeService.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/RealMeService.php b/src/RealMeService.php index 726d191..eeaa1e0 100644 --- a/src/RealMeService.php +++ b/src/RealMeService.php @@ -1133,7 +1133,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_INTERNAL', 'RealMe was unable to process your request due to a RealMe internal error. Please try again. ' . 'If the problem persists, please contact the RealMe Help Desk. From New Zealand dial ' . - '0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + '0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1142,7 +1142,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_NOAVAILABLEIDP', 'RealMe reported that the TXT service or the token service is not available. You may try again ' . 'later. If the problem persists, please contact the RealMe Help Desk. From New Zealand dial ' . - '0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + '0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1151,7 +1151,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_REQUESTUNSUPPORTED', 'RealMe reported a serious application error with the message \'Request Unsupported\'. Please try' . ' again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand' . - ': 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + ': 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1160,7 +1160,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_NOPASSIVE', 'RealMe reported a serious application error with the message \'No Passive\'. Please try again ' . 'later. If the problem persists, please contact the RealMe Help Desk. From New Zealand: 0800 ' . - '664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + '664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1169,7 +1169,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_REQUESTDENIED', 'RealMe reported a serious application error with the message \'Request Denied\'. Please try ' . 'again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand:' . - ' 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + ' 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1178,7 +1178,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_UNSUPPORTEDBINDING', 'RealMe reported a serious application error with the message \'Unsupported Binding\'. Please ' . 'try again later. If the problem persists, please contact the RealMe Help Desk. From New ' . - 'Zealand: 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges ' . + 'Zealand: 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges ' . 'apply).' ); break; @@ -1196,7 +1196,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_NOAUTHNCONTEXT', 'RealMe reported a serious application error with the message \'No AuthN Context\'. Please try ' . 'again later. If the problem persists, please contact the RealMe Help Desk. From New Zealand:' . - ' 0800 664 774 (toll free), from overseas dial +64 9 357 4468 (overseas call charges apply).' + ' 0800 664 774 (toll free), from overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; @@ -1205,7 +1205,7 @@ private function findErrorMessageForCode($errorCode) self::class . '.ERROR_GENERAL', 'RealMe reported a serious application error. Please try again later. If the problem persists, ' . 'please contact the RealMe Help Desk. From New Zealand: 0800 664 774 (toll free), from ' . - 'overseas dial +64 9 357 4468 (overseas call charges apply).' + 'overseas dial +64 4 462 0674 (overseas call charges apply).' ); break; }