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.
16 lines
425 B
Text
16 lines
425 B
Text
<script>
|
|
$("content").style.display = "none";
|
|
</script>
|
|
|
|
<h1><%= t 'user.confirm_email.heading' %></h1>
|
|
|
|
<p><%= t 'user.confirm_email.press confirm button' %></p>
|
|
|
|
<form id="confirm" method="post">
|
|
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
|
|
<input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
|
|
</form>
|
|
|
|
<script>
|
|
$("confirm").submit();
|
|
</script>
|