common/models/SelfHostUsers.php
/**
     * Finds out if password reset token is valid
     *
     * @param string $token password reset token
     * @return boolean
     */
Finds out if password reset token is valid
@param string $token password reset token
@return boolean
Finds out if password reset token is valid @param string $token password reset token @return boolean
public static function isPasswordResetTokenValid($token)
    {
        if (empty($token)) {
            return false;
        }
        $timestamp = (int) substr($token, strrpos($token, '_') + 1);
        $expire = Preferences::getValueByKey('user.passwordResetTokenExpire');
        return $timestamp + $expire >= time();
    }
public static function isPasswordResetTokenValid ( $ token ) { if ( empty ( $ token ) ) { return false ; } $ timestamp = ( int ) substr ( $ token , strrpos ( $ token , '_' ) + 1 ) ; $ expire = Preferences :: getValueByKey ( 'user.passwordResetTokenExpire' ) ; return $ timestamp + $ expire >= time ( ) ; }
Finds out if password reset token is valid
 @param string $token password reset token
 @return boolean
Finds out if password reset token is valid @param string $token password reset token @return boolean