diff --git a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html
index 1ac57cd92..c3ab04d87 100644
--- a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html
+++ b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html
@@ -56,7 +56,7 @@
}
function redirect_page() {
- if (time >= 0) {
+ if (time > 0) {
var msg = message + ', ' + time + ' ...';
$('#messages').html(msg);
time--;
diff --git a/apps/templates/flash_message_standalone.html b/apps/templates/flash_message_standalone.html
index 97a75e67a..4269f71e7 100644
--- a/apps/templates/flash_message_standalone.html
+++ b/apps/templates/flash_message_standalone.html
@@ -44,7 +44,7 @@
{% block custom_foot_js %}