-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #375 from silinternational/feature/IDP-1221-sync-e…
…rrors-notification-email [IDP-1221] Optionally send external-groups sync-errors notification email
- Loading branch information
Showing
12 changed files
with
366 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
use yii\helpers\Html as yHtml; | ||
|
||
/** | ||
* @var string $appPrefix | ||
* @var string[] $errors | ||
* @var string $googleSheetUrl | ||
* @var string $emailSignature | ||
* @var string $idpDisplayName | ||
* @var string $idpName | ||
*/ | ||
?> | ||
<p> | ||
The following errors occurred when syncing the <?= yHtml::encode($appPrefix) ?> | ||
external groups to the <?= yHtml::encode($idpDisplayName) ?> IDP: | ||
</p> | ||
<?= yHtml::ul($errors) ?> | ||
|
||
<?php | ||
if (empty($googleSheetUrl)) { | ||
?> | ||
<p> | ||
If any of these seem like simple data problems, you can potentially fix them | ||
by updating the information in the Google Sheet used for this | ||
external-groups sync. | ||
</p> | ||
<?php | ||
} else { | ||
?> | ||
<p> | ||
If any of these seem like simple data problems, you can potentially fix them | ||
by updating the information in the "<?= yHtml::encode($idpName) ?>" tab of | ||
this Google Sheet: <br /> | ||
<?= yHtml::a($googleSheetUrl, $googleSheetUrl) ?> | ||
</p> | ||
<?php | ||
} | ||
?> | ||
|
||
<p> | ||
Other users' external groups may have been synced successfully. | ||
</p> | ||
|
||
<p><i><?= nl2br(yHtml::encode($emailSignature), false) ?></i></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.