Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions cmd/adminapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ func realMain(ctx context.Context) error {
sub.Use(requireAPIKey)
sub.Use(processFirewall)

issueapiController, err := issueapi.New(ctx, cfg, db, limiterStore, h)
if err != nil {
return fmt.Errorf("issueapi.New: %w", err)
}
issueapiController := issueapi.New(ctx, cfg, db, limiterStore, h)
sub.Handle("/issue", issueapiController.HandleIssue()).Methods("POST")

codeStatusController := codestatus.NewAPI(ctx, cfg, db, h)
Expand Down
2 changes: 0 additions & 2 deletions cmd/server/assets/admin/caches/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ <h5 class="mb-1">{{$cache.Name}}</h5>
</ul>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/admin/email/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -82,8 +81,6 @@ <h1>System email config</h1>
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
2 changes: 0 additions & 2 deletions cmd/server/assets/admin/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/admin/realms/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -121,8 +120,6 @@ <h1>Edit realm</h1>
</div>
{{end}}
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
2 changes: 0 additions & 2 deletions cmd/server/assets/admin/realms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/admin/realms/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -105,8 +104,6 @@ <h1>New realm</h1>
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/admin/sms/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -74,8 +73,6 @@ <h1>System SMS config</h1>
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
2 changes: 0 additions & 2 deletions cmd/server/assets/admin/users/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/admin/users/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -56,8 +55,6 @@ <h1>New system admin</h1>
</div>
</div>
</main>

{{template "scripts" .}}
</body>

</html>
Expand Down
3 changes: 0 additions & 3 deletions cmd/server/assets/apikeys/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -62,8 +61,6 @@ <h1>Edit API key</h1>
</p>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
2 changes: 0 additions & 2 deletions cmd/server/assets/apikeys/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ <h1>API keys</h1>
</p>
{{end}}
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
3 changes: 0 additions & 3 deletions cmd/server/assets/apikeys/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<html lang="en">
<head>
{{template "head" .}}
{{template "floatingform" .}}
</head>

<body class="tab-content">
Expand Down Expand Up @@ -54,8 +53,6 @@ <h1>New API key</h1>
</div>
</div>
</main>

{{template "scripts" .}}
</body>
</html>
{{end}}
2 changes: 0 additions & 2 deletions cmd/server/assets/apikeys/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ <h1>{{$authApp.Name}} API key</h1>
</div>
</main>

{{template "scripts" .}}

{{if $stats}}
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script>
Expand Down
2 changes: 0 additions & 2 deletions cmd/server/assets/codestatus/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<html lang="en">

<head>
{{template "floatingform" .}}
{{template "head" .}}
</head>

Expand Down Expand Up @@ -66,7 +65,6 @@ <h1>Verification code status</h1>
</div>
</main>

{{template "scripts" .}}
<script type="text/javascript">
$(function() {
let $check= $('#check');
Expand Down
1 change: 0 additions & 1 deletion cmd/server/assets/codestatus/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ <h5 class="mb-1">SMS link expiry</h5>
<a href="/code/status" class="card-link">&larr; Enter another code</a>
</main>

{{template "scripts" .}}
{{template "codescripts" .}}

{{if not .code.Claimed}}
Expand Down
Loading