Index: trunk/phase3/includes/User.php |
— | — | @@ -2982,8 +2982,9 @@ |
2983 | 2983 | * @private |
2984 | 2984 | */ |
2985 | 2985 | function confirmationToken( &$expiration ) { |
| 2986 | + global $wgUserEmailConfirmationTokenExpiry; |
2986 | 2987 | $now = time(); |
2987 | | - $expires = $now + 7 * 24 * 60 * 60; |
| 2988 | + $expires = $now + $wgUserEmailConfirmationTokenExpiry; |
2988 | 2989 | $expiration = wfTimestamp( TS_MW, $expires ); |
2989 | 2990 | $token = self::generateToken( $this->mId . $this->mEmail . $expires ); |
2990 | 2991 | $hash = md5( $token ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1046,6 +1046,11 @@ |
1047 | 1047 | $wgNewPasswordExpiry = 3600 * 24 * 7; |
1048 | 1048 | |
1049 | 1049 | /** |
| 1050 | + * The time, in seconds, when an email confirmation email expires |
| 1051 | + */ |
| 1052 | +$wgUserEmailConfirmationTokenExpiry = 7 * 24 * 60 * 60; |
| 1053 | + |
| 1054 | +/** |
1050 | 1055 | * SMTP Mode |
1051 | 1056 | * For using a direct (authenticated) SMTP server connection. |
1052 | 1057 | * Default to false or fill an array : |