Browse Source

move password login route

move password login route from /api/session to /api/auth/password
align with oauth
pull/2659/head
Bernd Storath 1 month ago
parent
commit
b4c9037e48
  1. 2
      docs/content/examples/tutorials/basic-installation.md
  2. 2
      src/app/pages/login.vue
  3. 0
      src/server/api/auth/password.post.ts

2
docs/content/examples/tutorials/basic-installation.md

@ -2,7 +2,7 @@
title: Basic Installation title: Basic Installation
--- ---
<!-- TOOD: add docs for pihole, nginx, caddy, traefik --> <!-- TODO: add docs for pihole, nginx, caddy, traefik -->
## Requirements ## Requirements

2
src/app/pages/login.vue

@ -140,7 +140,7 @@ const { data: authMethods } = await useFetch('/api/auth/methods');
const _submit = useSubmit( const _submit = useSubmit(
(data) => (data) =>
$fetch('/api/session', { $fetch('/api/auth/password', {
method: 'post', method: 'post',
body: data, body: data,
}), }),

0
src/server/api/session.post.ts → src/server/api/auth/password.post.ts

Loading…
Cancel
Save