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
This commit is contained in:
@ -114,7 +114,7 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def invited?
|
||||
invite_id.present?
|
||||
invite_id.present? && invite.valid_for_use?
|
||||
end
|
||||
|
||||
def disable!
|
||||
|
Reference in New Issue
Block a user