-
-
Notifications
You must be signed in to change notification settings - Fork 92
Support case-insensitive tokens? #248
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
Comments
I think this could be an okay addition behind a config flag. Default is current implementation, so something like PRs welcome. |
WIP at #249 |
I've just spent some time debugging after a few user reports of code entry trouble, turns out it was this and people were naturally just 'expecting' case insensitivity! Very keen on this PR, might even be worth calling it out somewhere clearly in the readme as I feel like it's possibly a common tripwire for people? (Edit: On closer inspection the detail included in the PR there is probably enough) |
I'm very fortunate to have an early adopter of my app who correctly pivoted to matching case. My stop gap fix is just including my own copy of session.rb (basically the PR version) in the app for now. Would be happy to return to vanilla in a future version if this is merged. |
Nice yeah, I've just been testing a modified version without the config since I only want the upcase version as the default anyway — seems good so far. |
My token generator uses only uppercase letters and numbers. When hand-entering the token, sometimes the user is lazy and writes letters in lowercase, which I want to allow. I'm supporting this by re-implementing
Passwordless::Session
, but it'd be nice if this was a configuration option.The text was updated successfully, but these errors were encountered: