-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sanitize_token()
doesn't allow lowercase characters
#347
Comments
Thanks @jmbarbone. I restricted to uppercase intentionally, because REDCap's token generating code wasn't producing any lowercase letters. I assume it generated lowercase letters for you? I guess their code changed. If so, do you mind removing the call to pattern <- "^([0-9A-Fa-f]{32})(?:\\n)?$" |
Yes, @wibeasley, all the API tokens I've seen use lowercase characters. The reason I used |
resolves #347 - lowercase characters in token
I'm glad you figured it out and told me instead of turning off the validation. |
To reflect @jmbarbone's modifications in #347 & #348 Update NEWS.md
Adding a small change in
sanitize_token()
withtoupper()
could save some work for people with API tokens stored with lowercase character data.Created on 2021-07-22 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: