slight cleanup to example auth code
add smarty modifier camelcase2space