mikker / passwordless

🗝 Authentication for your Rails app without the icky-ness of passwords
MIT License
1.25k stars 86 forks source link

Constraint for config/routes.rb #227

Closed tdegrunt closed 1 month ago

tdegrunt commented 1 month ago

Should fix https://github.com/mikker/passwordless/issues/139

henrikbjorn commented 1 month ago

Could the lambda be made optional ?

henrikbjorn commented 1 month ago

Also would be cool to have a negative of it. E.g. I want to disallow people when they are logged in.

tdegrunt commented 1 month ago

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.

mikker commented 1 month ago

Included in #228. Thank you for contributing to Passwordless!