Strip query strings when authenticating to ResComp

Recent login page updates broke this script, this fixes it by ignoring
the query string before checking if it matches our pattern.

(TODO: regex)