passwordless icon indicating copy to clipboard operation
passwordless copied to clipboard

Constraint for config/routes.rb

Open tdegrunt opened this issue 1 year ago • 3 comments

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

  • Renames the constraint to Passwordless::Constraint
  • Added tests
  • Added docs

tdegrunt avatar May 23 '24 12:05 tdegrunt

Could the lambda be made optional ?

henrikbjorn avatar May 23 '24 12:05 henrikbjorn

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

henrikbjorn avatar May 23 '24 12:05 henrikbjorn

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.

tdegrunt avatar May 24 '24 13:05 tdegrunt

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

mikker avatar May 28 '24 20:05 mikker