Change the text of the submit button when the password is not valid.
[platal.git] / plugins / function.xsrf_token_field.php
index 28f09b8..3b6932e 100644 (file)
@@ -20,8 +20,8 @@
  ***************************************************************************/
 
 function smarty_function_xsrf_token_field($params, &$smarty) {
-    if (Session::has('xsrf_token')) {
-        return '<input type="hidden" name="token" value="' . Session::v('xsrf_token') . '" />';
+    if (S::has('xsrf_token')) {
+        return '<div style="display: none"><input type="hidden" name="token" value="' . S::v('xsrf_token') . '" /></div>';
     }
     return '';
 }