2015-06-15 21:49:16 +00:00
|
|
|
{{define "body"}}
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 col-md-2 sidebar">
|
|
|
|
<ul class="nav nav-sidebar">
|
|
|
|
<li><a href="/">Dashboard</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/campaigns">Campaigns</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/users">Users & Groups</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/templates">Email Templates</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/landing_pages">Landing Pages</a>
|
|
|
|
</li>
|
2016-02-20 22:39:23 +00:00
|
|
|
<li><a href="/sending_profiles">Sending Profiles</a>
|
|
|
|
</li>
|
2015-06-21 21:10:47 +00:00
|
|
|
<li class="active"><a href="/settings">Settings</a>
|
|
|
|
</li>
|
2016-02-20 22:39:23 +00:00
|
|
|
<li><hr></li>
|
|
|
|
<li><a href="/gophish_user_guide.pdf">User Guide</a>
|
|
|
|
</li>
|
2015-06-21 21:10:47 +00:00
|
|
|
<li><a href="/api/">API Documentation</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-12-12 06:27:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
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>
|
2016-02-10 04:19:06 +00:00
|
|
|
<div class="row">
|
|
|
|
<label class="col-sm-2 control-label form-label">Register a New User</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<a href="/register" class="btn btn-primary"><i class="fa fa-plus"></i> Add User</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2015-06-21 21:10:47 +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">
|
|
|
|
<input type="text" id="api_key" onclick="this.select();" value="{{.User.ApiKey}}" class="form-control" readonly/>
|
|
|
|
</div>
|
2015-08-15 21:03:39 +00:00
|
|
|
<form id="apiResetForm">
|
2015-06-21 21:10:47 +00:00
|
|
|
<button class="btn btn-primary"><i class="fa fa-refresh" type="submit"></i> Reset</button>
|
|
|
|
<input type="hidden" name="csrf_token" value="{{.Token}}"/>
|
|
|
|
</form>
|
2013-12-12 06:27:43 +00:00
|
|
|
</div>
|
2015-06-21 21:10:47 +00:00
|
|
|
<br />
|
2015-08-15 21:03:39 +00:00
|
|
|
<form id="settingsForm">
|
2014-01-31 04:46:25 +00:00
|
|
|
<div class="row">
|
2015-06-21 21:10:47 +00:00
|
|
|
<label for="username" class="col-sm-2 control-label form-label">Username:</label>
|
2014-01-31 04:46:25 +00:00
|
|
|
<div class="col-md-6">
|
2015-08-15 21:03:39 +00:00
|
|
|
<input type="text" id="username" name="username" value="{{.User.Username}}" class="form-control" />
|
2014-01-31 04:46:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="row">
|
|
|
|
<label for="current_password" class="col-sm-2 control-label form-label">Old Password:</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" id="current_password" name="current_password" class="form-control"/>
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
2015-06-21 21:10:47 +00:00
|
|
|
</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">
|
|
|
|
<input type="password" id="new_password" name="new_password" class="form-control" />
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
2015-06-21 21:10:47 +00:00
|
|
|
</div>
|
2015-07-30 04:15:49 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{.Token}}"/>
|
2015-06-21 21:10:47 +00:00
|
|
|
<br />
|
2016-02-10 04:19:06 +00:00
|
|
|
<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> Save</button>
|
2015-06-21 21:10:47 +00:00
|
|
|
</form>
|
|
|
|
<br/>
|
2013-12-12 06:27:43 +00:00
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{end}}
|
2015-06-21 21:10:47 +00:00
|
|
|
{{define "scripts"}}
|
2015-07-30 04:15:49 +00:00
|
|
|
<script src="/js/app/settings.js"></script>
|
2015-06-21 21:10:47 +00:00
|
|
|
{{end}}
|