Skip to content

Commit

Permalink
Switch login form URLs to relative URIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 10, 2024
1 parent cb8b54f commit b995cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/public/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<section class="login">
<h2>{{ .L.T "users.login"}}</h2>
{{ if .Data.PasswordEnabled }}
<form method="post" action="{{ .RootURL }}/admin/login" class="form">
<form method="post" action="/admin/login" class="form">
<div>
<input type="hidden" name="nonce" value="{{ .Data.Nonce }}" />
<input type="hidden" name="next" value="{{ .Data.NextURI }}" />
Expand All @@ -25,7 +25,7 @@ <h2>{{ .L.T "users.login"}}</h2>
{{ end }}

{{ if .Data.OIDCProvider }}
<form method="post" action="{{ .RootURL }}/auth/oidc">
<form method="post" action="/auth/oidc">
<div>
<input type="hidden" name="nonce" value="{{ .Data.Nonce }}" />
<input type="hidden" name="next" value="{{ .Data.NextURI }}" />
Expand Down

0 comments on commit b995cce

Please sign in to comment.