Allow users to send themselves a new confirmation email
Add a method which generates a new confirmation email, and provide links to it from appropriate places.
This commit is contained in:
parent
52e523cb0b
commit
bddf524c88
6 changed files with 55 additions and 21 deletions
|
@ -104,7 +104,7 @@ class UserCreationTest < ActionController::IntegrationTest
|
|||
|
||||
assert_equal register_email.to[0], new_email
|
||||
# Check that the confirm account url is correct
|
||||
confirm_regex = Regexp.new("/user/confirm\\?confirm_string=([a-zA-Z0-9]*)")
|
||||
confirm_regex = Regexp.new("/user/redirect_tester/confirm\\?confirm_string=([a-zA-Z0-9]*)")
|
||||
assert_match(confirm_regex, register_email.body)
|
||||
confirm_string = confirm_regex.match(register_email.body)[1]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue