Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 1911494

Browse files
author
Baggerone
authored
Merge pull request #114 from silinternational/develop
Release 7.6.1 fixed bug with float type sent to translate
2 parents d47087d + 6f1c162 commit 1911494

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,21 @@ If provided, an alert will be shown to the user filled with the content of that
112112

113113
### Expiry functionality
114114

115-
#### About to expire page
115+
#### About to expire page (expires in one day)
116116

117-
_Note: This nag only works once since choosing later will simply set the nag date into the future a little._
117+
_Note: This nag only works once since choosing later will simply set the nag date into the future a little.
118+
If needed, use a new private/incognito browser window to retry._
119+
120+
1. Goto [SP 1](http://ssp-sp1.local:8082/module.php/core/authenticate.php?as=hub-discovery)
121+
1. Click **idp2** (second one)
122+
1. Login as an "about to expire" user: `username=`**near_future** `password=`**a**
123+
1. Click **Later**
124+
1. Click **Logout**
125+
126+
#### About to expire page (expires in three days)
127+
128+
_Note: This nag only works once since choosing later will simply set the nag date into the future a little.
129+
If needed, use a new private/incognito browser window to retry._
118130

119131
1. Goto [SP 1](http://ssp-sp1.local:8082/module.php/core/authenticate.php?as=hub-discovery)
120132
1. Click **idp2** (second one)

development/idp2/authsources.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@
2222
'mail' => ['[email protected]'],
2323
'employeeNumber' => ['22222'],
2424
'cn' => ['NEAR_FUTURE'],
25+
'schacExpiryDate' => [
26+
gmdate('YmdHis\Z', strtotime('+3 day')), // Soon but not tomorrow
27+
],
28+
],
29+
'next_day:a' => [
30+
'eduPersonPrincipalName' => ['[email protected]'],
31+
'eduPersonTargetID' => ['22888888-2222-2222-2222-222222222222'],
32+
'sn' => ['Day'],
33+
'givenName' => ['Next'],
34+
'mail' => ['[email protected]'],
35+
'employeeNumber' => ['22888'],
36+
'cn' => ['NEXT_DAY'],
2537
'schacExpiryDate' => [
2638
gmdate('YmdHis\Z', strtotime('+1 day')), // Very soon
2739
],

themes/material/expirychecker/about2expire.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
$expiringMessage = $daysLeft < 2 ?
3232
$this->t('{material:about2expire:expiring_in_a_day}') :
3333
$this->t('{material:about2expire:expiring_soon}',
34-
['{daysLeft}' => $daysLeft]);
34+
['{daysLeft}' => (string) $daysLeft]);
3535
?>
3636
<?= $expiringMessage ?>
3737
</p>

0 commit comments

Comments
 (0)