2015-06-15 21:49:16 +00:00
|
|
|
{{define "body"}}
|
2015-07-30 04:15:49 +00:00
|
|
|
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="row">
|
|
|
|
<h1 class="page-header">Settings</h1>
|
|
|
|
</div>
|
|
|
|
<div id="flashes" class="row"></div>
|
2017-09-17 04:30:04 +00:00
|
|
|
<!-- Nav tabs -->
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2018-10-11 17:06:36 +00:00
|
|
|
<li class="active" role="mainSettings"><a href="#mainSettings" aria-controls="mainSettings" role="tab"
|
|
|
|
data-toggle="tab">Account Settings</a></li>
|
2019-05-31 18:58:18 +00:00
|
|
|
<li role="uiSettings"><a href="#uiSettings" aria-controls="uiSettings" role="tab" data-toggle="tab">UI
|
|
|
|
Settings</a></li>
|
2017-09-17 04:30:04 +00:00
|
|
|
</ul>
|
|
|
|
<!-- Tab Panes -->
|
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="mainSettings">
|
2018-10-11 17:06:36 +00:00
|
|
|
<br />
|
2019-02-20 02:33:50 +00:00
|
|
|
{{if .ModifySystem }}
|
2017-09-17 04:30:04 +00:00
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-2 control-label form-label">Gophish version</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<label class="form-label">{{.Version}}</label>
|
|
|
|
</div>
|
2016-02-10 04:19:06 +00:00
|
|
|
</div>
|
2018-10-11 17:06:36 +00:00
|
|
|
<br />
|
2019-02-20 02:33:50 +00:00
|
|
|
{{end}}
|
2017-09-17 04:30:04 +00:00
|
|
|
<div class="row">
|
|
|
|
<label for="api_key" class="col-sm-2 control-label form-label">API Key:</label>
|
|
|
|
<div class="col-md-6">
|
2019-05-31 18:58:18 +00:00
|
|
|
<input type="text" id="api_key" onclick="this.select();" value="{{.User.ApiKey}}"
|
|
|
|
class="form-control" readonly />
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
|
|
|
<form id="apiResetForm">
|
|
|
|
<button class="btn btn-primary"><i class="fa fa-refresh" type="submit"></i> Reset</button>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{.Token}}" />
|
|
|
|
</form>
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
2017-09-17 04:30:04 +00:00
|
|
|
<br />
|
|
|
|
<form id="settingsForm">
|
|
|
|
<div class="row">
|
|
|
|
<label for="username" class="col-sm-2 control-label form-label">Username:</label>
|
|
|
|
<div class="col-md-6">
|
2019-05-31 18:58:18 +00:00
|
|
|
<input type="text" id="username" name="username" value="{{.User.Username}}"
|
|
|
|
class="form-control" />
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
<label for="current_password" class="col-sm-2 control-label form-label">Old Password:</label>
|
|
|
|
<div class="col-md-6">
|
2019-05-31 18:58:18 +00:00
|
|
|
<input type="password" id="current_password" name="current_password" autocomplete="off"
|
|
|
|
class="form-control" />
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
<label for="new_password" class="col-sm-2 control-label form-label">New Password:</label>
|
|
|
|
<div class="col-md-6">
|
2019-05-31 18:58:18 +00:00
|
|
|
<input type="password" id="new_password" name="new_password" autocomplete="off"
|
|
|
|
class="form-control" />
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
2019-05-31 18:58:18 +00:00
|
|
|
<label for="confirm_new_password" class="col-sm-2 control-label form-label">Confirm New
|
|
|
|
Password:</label>
|
2017-09-17 04:30:04 +00:00
|
|
|
<div class="col-md-6">
|
2018-10-11 17:06:36 +00:00
|
|
|
<input type="password" id="confirm_new_password" name="confirm_new_password" autocomplete="off"
|
|
|
|
class="form-control" />
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{.Token}}" />
|
|
|
|
<br />
|
|
|
|
<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
|
|
|
|
</form>
|
2018-10-11 17:06:36 +00:00
|
|
|
<br />
|
2015-06-21 21:10:47 +00:00
|
|
|
</div>
|
2017-09-17 04:30:04 +00:00
|
|
|
<div role="tabpanel" class="tab-pane" id="uiSettings">
|
2018-10-11 17:06:36 +00:00
|
|
|
<br />
|
2017-09-17 04:30:04 +00:00
|
|
|
<div class="checkbox checkbox-primary">
|
|
|
|
<input id="use_map" type="checkbox">
|
|
|
|
<label for="use_map">Show campaign results map</label>
|
2016-03-02 13:30:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-17 04:30:04 +00:00
|
|
|
</div>
|
2013-12-12 06:27:43 +00:00
|
|
|
</div>
|
2017-09-17 04:30:04 +00:00
|
|
|
{{end}} {{define "scripts"}}
|
2017-01-08 20:35:08 +00:00
|
|
|
<script src="/js/dist/app/settings.min.js"></script>
|
2017-09-17 04:30:04 +00:00
|
|
|
{{end}}
|