Skip to content

Node.js based forum software built for the modern web

save values from form

psychobunnyd72d1a1641d9
diff --git a/install/web.js b/install/web.js
index 8beadbf673..af5b168692 100644
--- a/install/web.js
+++ b/install/web.js
@@ -63,10 +63,13 @@ function welcome(req, res) {
});
});
+ console.log(req.body);
+
res.render('install/index', {
databases: databases,
error: res.locals.error ? true : false,
- success: res.locals.success ? true : false
+ success: res.locals.success ? true : false,
+ values: req.body
});
}
@@ -95,7 +98,7 @@ function install(req, res) {
}
function launch(req, res) {
-
+
}
function compileLess(callback) {
diff --git a/src/views/install/index.tpl b/src/views/install/index.tpl
index 4866745126..beb32f9419 100644
--- a/src/views/install/index.tpl
+++ b/src/views/install/index.tpl
@@ -57,28 +57,28 @@
<div class="row input-row">
<div class="col-sm-7 col-xs-12 input-field">
<label for="admin:username">Username</label>
- <input type="text" class="form-control" name="admin:username" placeholder="Username" />
+ <input type="text" class="form-control" name="admin:username" value="{admin:username}" placeholder="Username" />
</div>
<div class="col-sm-5 help-text" data-help="Enter an <strong>alphanumeric username</strong>. Spaces between words are allowed. You can always change your username later on your profile page."></div>
</div>
<div class="row input-row">
<div class="col-sm-7 col-xs-12 input-field">
<label for="admin:email">Email Address</label>
- <input type="text" class="form-control" name="admin:email" placeholder="Email Address" />
+ <input type="text" class="form-control" name="admin:email" value="{admin:email}" placeholder="Email Address" />
</div>
<div class="col-sm-5 help-text" data-help="Please enter your email address."></div>
</div>
<div class="row input-row">
<div class="col-sm-7 col-xs-12 input-field">
<label for="admin:password">Password</label>
- <input type="password" class="form-control" name="admin:password" placeholder="Password" />
+ <input type="password" class="form-control" name="admin:password" value="{admin:password}" placeholder="Password" />
</div>
<div class="col-sm-5 help-text" data-help="Use a combination of numbers, symbols, and different cases. You can change the strictness of password creation in the Admin Control Panel."></div>
</div>
<div class="row input-row">
<div class="col-sm-7 col-xs-12 input-field">
<label for="admin:password:confirm">Confirm Password</label>
- <input type="password" class="form-control" name="admin:password:confirm" placeholder="Confirm Password" />
+ <input type="password" class="form-control" name="admin:password:confirm" value="{admin:password:confirm}" placeholder="Confirm Password" />
</div>
<div class="col-sm-5 help-text" data-help="Please confirm your password."></div>
</div>