@churchapps/apphelper 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,7 +90,7 @@ const LoginSetPassword = props => {
|
|
|
90
90
|
const linkTimestamp = parseInt(timestampParam, 10);
|
|
91
91
|
const currentTime = Date.now();
|
|
92
92
|
//Check if the link is expired (2 min)
|
|
93
|
-
if (currentTime - linkTimestamp >
|
|
93
|
+
if (currentTime - linkTimestamp > 600000) {
|
|
94
94
|
setLinkExpired(true);
|
|
95
95
|
}
|
|
96
96
|
else {
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ export const LoginSetPassword: React.FC<Props> = props => {
|
|
|
66
66
|
const currentTime = Date.now();
|
|
67
67
|
|
|
68
68
|
//Check if the link is expired (2 min)
|
|
69
|
-
if (currentTime - linkTimestamp >
|
|
69
|
+
if (currentTime - linkTimestamp > 600000) {
|
|
70
70
|
setLinkExpired(true);
|
|
71
71
|
} else {
|
|
72
72
|
loadUser();
|