Skip to content

Commit 9ee7a88

Browse files
Apply suggestion from @runephilosof-abtion
Co-authored-by: Rune Philosof <57357936+runephilosof-abtion@users.noreply.github.com>
1 parent b133a37 commit 9ee7a88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/integration/confirmable_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ def visit_admin_confirmation_with_token(confirmation_token)
363363
confirmation_token: "different token"
364364
)
365365

366-
# now we update to the same prior unconfirmed email address, and confirm
366+
# Now the attacker updates to the same prior unconfirmed email address, and confirm.
367+
# This should update the `unconfirmed_email` in the database, even though it is unchanged from the models point of view.
367368
attacker.update(email: attacker_email)
368369
attacker_token = attacker.raw_confirmation_token
369370
visit_admin_confirmation_with_token(attacker_token)

0 commit comments

Comments
 (0)