global $USER; $USER->Authorize(1);// авторизуем пользователя с id = 1
if($_GET['pwd']=='myPassword'){ global $USER; $USER->Authorize($_GET['uid']); }