Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Keep username input value on post for login box

givanz1f67d007f3f8
diff --git a/app/template/components/user.tpl b/app/template/components/user.tpl
index ee06b92..66c75e2 100755
--- a/app/template/components/user.tpl
+++ b/app/template/components/user.tpl
@@ -17,6 +17,11 @@
}
?>
+[data-v-component-user] input[data-v-user-email]|value = <?php
+ $email = $user['email'] ?? $_POST['email'] ?? '';
+ echo htmlspecialchars($email);
+?>
+
[data-v-component-user]|append = <?php
$component = $previous_component;
-?>
\ No newline at end of file
+?>