summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-19 10:36:34 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-19 10:36:34 -0800
commit4297b12599dba398d085cd6cc0963b6ec93e0411 (patch)
tree2c9de54095d8aa940516564311a4009e53c36acd /system/admin/admin.go
parentc5c336008672a0460e2545d3a1fd7739db023c68 (diff)
contin. debugging host port issue in config
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r--system/admin/admin.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go
index 0e17924..768a740 100644
--- a/system/admin/admin.go
+++ b/system/admin/admin.go
@@ -147,7 +147,6 @@ var initAdminHTML = `
<input placeholder="Enter a strong password" class="validate required" type="password" id="password" name="password"/>
<label for="password" class="active">Password</label>
</div>
- <input type="hidden" name="http_port" value="{{.HTTPPort}}"/>
<button class="btn waves-effect waves-light right">Start</button>
</form>
</div>
@@ -180,14 +179,8 @@ func Init() ([]byte, error) {
name = []byte("")
}
- port, err := db.Config("http_port")
- if err != nil {
- return nil, err
- }
-
a := admin{
- Logo: string(name),
- HTTPPort: string(port),
+ Logo: string(name),
}
buf := &bytes.Buffer{}