]> cat aescling's git repositories - mastodon.git/commit
Check that an invite link is valid before bypassing approval mode (#10657)
authorThibG <thib@sitedethib.com>
Thu, 2 May 2019 02:30:12 +0000 (04:30 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 2 May 2019 02:30:12 +0000 (04:30 +0200)
commit21a73c52a7d0d0149e1058aeec155fe1c87aaeff
treef3ab8ce5d5f7c793c072d2f8f2084762b6a6ce52
parentc4f24333002a6b1cec06f53c2910700648654487
Check that an invite link is valid before bypassing approval mode (#10657)

* Check that an invite link is valid before bypassing approval mode

Fixes #10656

* Add tests

* Only consider valid invite links in registration controller

* fixup
app/controllers/auth/registrations_controller.rb
app/models/user.rb
spec/controllers/auth/registrations_controller_spec.rb