fix logout redirect and cleanup unsused imports
This commit is contained in:
parent
b6775fae9b
commit
7aa817ee05
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ Index
|
|||
</div>
|
||||
|
||||
<p class="mt-10 text-center text-sm text-gray-500">
|
||||
<a href="/logout" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Logout</a>
|
||||
<a href="/logout" hx-get="/logout" class="font-semibold leading-6 text-indigo-600 hover:text-indigo-500">Logout</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endblock content %}
|
|
@ -7,9 +7,9 @@ use axum::{
|
|||
debug_handler,
|
||||
extract::State,
|
||||
//extract::Query,
|
||||
response::{/*IntoResponse,*/ Redirect},
|
||||
//response::{IntoResponse, Redirect},
|
||||
//Json,
|
||||
http::{StatusCode, header::{self, HeaderValue, HeaderMap}},
|
||||
http::{StatusCode, header::HeaderMap},
|
||||
Form};
|
||||
use axum_extra::extract::cookie::{CookieJar, Cookie, SameSite};
|
||||
|
||||
|
|
Loading…
Reference in a new issue