@@ -6,7 +6,8 @@ import type { FastifySchema } from 'fastify';
66import { customType } from '../../../../plugins/typebox' ;
77import { errorSchemaRef } from '../../../../schemas/global' ;
88
9- export const passwordLogin = {
9+ export const signInWithPassword = {
10+ operationId : 'signInWithPassword' ,
1011 tags : [ 'password' ] ,
1112 summary : 'Log in with email and password' ,
1213 description :
@@ -20,9 +21,17 @@ export const passwordLogin = {
2021 querystring : customType . StrictObject ( {
2122 lang : Type . Optional ( Type . String ( ) ) ,
2223 } ) ,
24+ response : {
25+ [ StatusCodes . OK ] : customType . StrictObject ( {
26+ resource : Type . String ( { description : 'Redirection link' } ) ,
27+ } ) ,
28+ '4xx' : errorSchemaRef ,
29+ '5xx' : errorSchemaRef ,
30+ } ,
2331} as const satisfies FastifySchema ;
2432
25- export const setPassword = {
33+ export const createPassword = {
34+ operationId : 'createPassword' ,
2635 tags : [ 'password' ] ,
2736 summary : 'Set a password for the authenticated member' ,
2837 description :
@@ -38,6 +47,7 @@ export const setPassword = {
3847} as const satisfies FastifySchema ;
3948
4049export const updatePassword = {
50+ operationId : 'updatePassword' ,
4151 tags : [ 'password' ] ,
4252 summary : 'Update the password of the authenticated member' ,
4353 description :
@@ -55,7 +65,8 @@ export const updatePassword = {
5565 } ,
5666} as const satisfies FastifySchema ;
5767
58- export const postResetPasswordRequest = {
68+ export const requestPasswordResetLink = {
69+ operationId : 'requestPasswordResetLink' ,
5970 tags : [ 'password' ] ,
6071 summary : 'Create a reset password request' ,
6172 description :
@@ -70,7 +81,8 @@ export const postResetPasswordRequest = {
7081 } ,
7182} as const satisfies FastifySchema ;
7283
73- export const patchResetPasswordRequest = {
84+ export const resetPassword = {
85+ operationId : 'resetPassword' ,
7486 tags : [ 'password' ] ,
7587 summary : 'Confirm the reset password request' ,
7688 description :
@@ -85,7 +97,8 @@ export const patchResetPasswordRequest = {
8597 } ,
8698} as const satisfies FastifySchema ;
8799
88- export const getMembersCurrentPasswordStatus = {
100+ export const getOwnPasswordStatus = {
101+ operationId : 'getOwnPasswordStatus' ,
89102 tags : [ 'password' , 'current' ] ,
90103 summary : 'Get the current password status of the authenticated member' ,
91104 description : 'Return whether the authenticated member has a password defined.' ,
0 commit comments