feat(security): #328 delete old sessions for change and forgot password
This commit was merged in pull request #335.
This commit is contained in:
@@ -4,7 +4,7 @@ templ ChangePasswordComp(isPasswordReset bool) {
|
||||
<form
|
||||
class="max-w-xl px-2 mx-auto flex flex-col gap-4 h-full justify-center"
|
||||
if isPasswordReset {
|
||||
hx-post="/api/auth/reset-password-actual"
|
||||
hx-post="/api/auth/forgot-password-actual"
|
||||
} else {
|
||||
hx-post="/api/auth/change-password"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package auth
|
||||
templ ResetPasswordComp() {
|
||||
<form
|
||||
class="max-w-xl px-2 mx-auto flex flex-col gap-4 h-full justify-center"
|
||||
hx-post="/api/auth/reset-password"
|
||||
hx-post="/api/auth/forgot-password"
|
||||
hx-swap="none"
|
||||
>
|
||||
<h2 class="text-6xl mb-10">
|
||||
|
||||
@@ -62,7 +62,7 @@ if isSignIn {
|
||||
</label>
|
||||
<div class="flex justify-end items-center gap-2">
|
||||
if isSignIn {
|
||||
<a href="/auth/reset-password" class="grow link text-gray-500 text-sm">Forgot Password?</a>
|
||||
<a href="/auth/forgot-password" class="grow link text-gray-500 text-sm">Forgot Password?</a>
|
||||
<a href="/auth/signup" class="link text-gray-500 text-sm">Don't have an account? Sign Up</a>
|
||||
<button class="btn btn-primary">
|
||||
Sign In
|
||||
|
||||
Reference in New Issue
Block a user