passwordless
passwordless copied to clipboard
Constraint for config/routes.rb
Should fix https://github.com/mikker/passwordless/issues/139
- Renames the constraint to Passwordless::Constraint
- Added tests
- Added docs
Could the lambda be made optional ?
Also would be cool to have a negative of it. E.g. I want to disallow people when they are logged in.
Updated it to support both suggestions. I had thought about making the proc optional, but I would've been okay with just using -> { true }, but this is nicer.
Included in #228. Thank you for contributing to Passwordless!