]> git.openstreetmap.org Git - rails.git/commit
Use javascript to automatically submit confirmation forms
authorTom Hughes <tom@compton.nu>
Mon, 4 Oct 2010 16:47:56 +0000 (17:47 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 4 Oct 2010 18:11:01 +0000 (19:11 +0100)
commit0874c807e3eb02a2880b2a175f066261ee374623
tree14c6e14cbf7b19099733f8a0ae1093e1f3987eb9
parent7c01f78a421892c31c20a31d7cd861c1cc8c04bc
Use javascript to automatically submit confirmation forms

In order to avoid forcing the user to press a confirm button, whilst
still not running into the problems we used to have with virus scanners
activating accounts we use javascript to hide and then automatically
submit the confirmation form.
app/controllers/user_controller.rb
app/views/user/confirm.html.erb
app/views/user/confirm_email.html.erb