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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/">{{T "Dashboard"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/campaigns">{{T "Campaigns"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2017-02-14 18:18:55 +00:00
|
|
|
<li><a href="/users">{{T "Users & Groups"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/templates">{{T "Email Templates"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/landing_pages">{{T "Landing Pages"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/sending_profiles">{{T "Sending Profiles"}}</a>
|
2016-02-20 22:39:23 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li class="active"><a href="/settings">{{T "Settings"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</li>
|
2016-02-20 22:39:23 +00:00
|
|
|
<li><hr></li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="https://gophish.gitbooks.io/user-guide/content/">{{T "User Guide"}}</a>
|
2016-02-20 22:39:23 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/api/">{{T "API Documentation"}}</a>
|
2015-06-21 21:10:47 +00:00
|
|
|
</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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<h1 class="page-header">{{T "Settings"}}</h1>
|
2015-06-21 21:10:47 +00:00
|
|
|
</div>
|
|
|
|
<div id="flashes" class="row"></div>
|
2016-08-06 23:58:34 +00:00
|
|
|
<div class="row">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label class="col-sm-2 control-label form-label">{{T "Gophish version"}}</label>
|
2016-08-06 23:58:34 +00:00
|
|
|
<div class="col-md-6">
|
|
|
|
<label class="form-label">{{.Version}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2016-02-10 04:19:06 +00:00
|
|
|
<div class="row">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label class="col-sm-2 control-label form-label">{{T "Register a New User"}}</label>
|
2016-02-10 04:19:06 +00:00
|
|
|
<div class="col-md-6">
|
2017-02-13 12:07:08 +00:00
|
|
|
<a href="/register" class="btn btn-primary"><i class="fa fa-plus"></i> {{T "Add User"}}</a>
|
2016-02-10 04:19:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="row">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="api_key" class="col-sm-2 control-label form-label">{{T "API Key"}}:</label>
|
2015-06-21 21:10:47 +00:00
|
|
|
<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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<button class="btn btn-primary"><i class="fa fa-refresh" type="submit"></i> {{T "Reset"}}</button>
|
2015-06-21 21:10:47 +00:00
|
|
|
<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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="username" class="col-sm-2 control-label form-label">{{T "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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="current_password" class="col-sm-2 control-label form-label">{{T "Old Password"}}:</label>
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="col-md-6">
|
2017-02-11 00:38:23 +00:00
|
|
|
<input type="password" id="current_password" name="current_password" autocomplete="off" 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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="new_password" class="col-sm-2 control-label form-label">{{T "New Password"}}:</label>
|
2015-06-21 21:10:47 +00:00
|
|
|
<div class="col-md-6">
|
2017-02-11 00:38:23 +00:00
|
|
|
<input type="password" id="new_password" name="new_password" autocomplete="off" class="form-control" />
|
2014-02-06 16:49:53 +00:00
|
|
|
</div>
|
2015-06-21 21:10:47 +00:00
|
|
|
</div>
|
2016-03-02 13:30:46 +00:00
|
|
|
<br />
|
|
|
|
<div class="row">
|
2017-02-13 12:07:08 +00:00
|
|
|
<label for="confirm_new_password" class="col-sm-2 control-label form-label">{{T "Confirm New Password"}}:</label>
|
2016-03-02 13:30:46 +00:00
|
|
|
<div class="col-md-6">
|
2017-02-11 00:38:23 +00:00
|
|
|
<input type="password" id="confirm_new_password" name="confirm_new_password" autocomplete="off" class="form-control" />
|
2016-03-02 13:30:46 +00:00
|
|
|
</div>
|
|
|
|
</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 />
|
2017-02-13 12:07:08 +00:00
|
|
|
<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> {{T "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"}}
|
2017-02-13 12:50:01 +00:00
|
|
|
<script>
|
|
|
|
localizedDatas = {}
|
|
|
|
</script>
|
2017-01-08 20:35:08 +00:00
|
|
|
<script src="/js/dist/app/settings.min.js"></script>
|
2015-06-21 21:10:47 +00:00
|
|
|
{{end}}
|