Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Increased the number of chars for password generate on install page

givanzad9eb136b57f
diff --git a/public/install/default/css/install.css b/public/install/default/css/install.css
index 404da3a..60eb91e 100755
--- a/public/install/default/css/install.css
+++ b/public/install/default/css/install.css
@@ -17,7 +17,7 @@ body {
#logo
{
display:block;
- margin:0rem auto 2rem;
+ margin:0rem auto 3rem;
}
[data-v-error-text] {
@@ -201,7 +201,7 @@ input.form-control
#color-theme-switch {
color:var(--bs-gray-500);
- font-size:2.4rem;
+ font-size:2rem;
text-decoration:none;
/*
width: 11px;
@@ -210,21 +210,22 @@ input.form-control
border: 1px solid var(--bs-gray-500);
border-radius: 50px;
*/
- padding: 3px;
+ padding:0.25rem;
cursor:pointer;
}
#color-theme-switch i {
font-style:normal;
+ font-family:'ionicons' !important;
}
.la-sun::before {
- content:"☼";
+ content:"\eda8";
}
.la-moon::before {
- content:"☽";
+ content:"\ec5b";
}
[data-bs-theme="dark"] #logo {
diff --git a/public/install/default/install.html b/public/install/default/install.html
old mode 100755
new mode 100644
index aa2c212..35e72f8
--- a/public/install/default/install.html
+++ b/public/install/default/install.html
@@ -114,7 +114,7 @@
<div class="mb-3 row">
<label for="title" class="col-sm-3 col-form-label">Website name</label>
<div class="col-sm-9">
- <input type="text" class="form-control" id="title" placeholder="Website name" name="settings[title]" value="" required>
+ <input type="text" class="form-control" id="title" placeholder="Website name" name="settings[description][1][title]" value="" required>
</div>
</div>
<div class="mb-3 row">
@@ -261,7 +261,7 @@
}
}
- function randomPassword(length, chars = "abcdefghijklmnopqrstuvwxyz!@#$%^&*()-+<>ABCDEFGHIJKLMNOP1234567890") {
+ function randomPassword(length, chars = "abcdefghijklmnopqrstuvwxyz!@#$%^&*()-+<>ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890") {
var pass = "";
for (var x = 0; x < length; x++) {
var i = Math.floor(Math.random() * chars.length);
@@ -271,11 +271,11 @@
}
function randomizePassword() {
- document.getElementById("password").value = randomPassword(42);
+ document.getElementById("password").value = randomPassword(49);
}
function randomizeAdminPath() {
- document.getElementById("admin-path").value = 'vadmin-' + randomPassword(8, "abcdefghijklmnopqrstuvwxyz1234567890");
+ document.getElementById("admin-path").value = 'vadmin-' + randomPassword(32, "abcdefghijklmnopqrstuvwxyz!@<>ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890");
};
randomizePassword();