Hello,
It seems like resending confirmation instructions updates the timestamp that Devise uses to decide if your user's confirmation allowed unconfirmed access period has expired.
resend_confirmation_instructions:
resend_confirmation_instructions just calls send_confirmation_instructions, which eventually calls generate_confirmation_token
generate_confirmation_token:
generate_confirmation_token sets self.confirmation_sent_at = Time.now.utc and that is the field that it uses to determine if the user is past the allowed unconfirmed access period.
It seems to me this allows the user to just resend the confirmation instructions, and keep signing in indefinitely without actually confirming. Is this a bug in confirmable? Or am I missing something? My application appears to be demonstrating this behaviour, but we're on a really old version of devise, so I don't want to immediately leap to filing a bug report.
Does anyone else have any thoughts on this?
thanks,
Jon