refractor(auth): removed password from everywhere
This commit is contained in:
@@ -66,9 +66,6 @@
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"must_change_password": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -191,25 +188,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ChangePasswordRequest": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"current_password": {
|
||||
"format": "password",
|
||||
"type": "string"
|
||||
},
|
||||
"new_password": {
|
||||
"format": "password",
|
||||
"minLength": 10,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"current_password",
|
||||
"new_password"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"CreateAreaRequest": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -347,9 +325,6 @@
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"must_change_password": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"permissions": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
@@ -379,7 +354,6 @@
|
||||
"email",
|
||||
"fiscal_code",
|
||||
"points",
|
||||
"must_change_password",
|
||||
"role",
|
||||
"roles",
|
||||
"permissions"
|
||||
@@ -1126,24 +1100,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"PasswordLoginRequest": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"email": {
|
||||
"format": "email",
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"format": "password",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"email",
|
||||
"password"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"ReadyResponse": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -1207,11 +1163,6 @@
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"format": "password",
|
||||
"minLength": 10,
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -1220,7 +1171,6 @@
|
||||
"first_name",
|
||||
"last_name",
|
||||
"email",
|
||||
"password",
|
||||
"fiscal_code"
|
||||
],
|
||||
"type": "object"
|
||||
@@ -2434,89 +2384,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/change-password": {
|
||||
"post": {
|
||||
"description": "Changes the authenticated user's password.",
|
||||
"operationId": "AuthController.changePassword",
|
||||
"parameters": [ ],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ChangePasswordRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/OkResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Password change result."
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/components/responses/BadRequest"
|
||||
},
|
||||
"401": {
|
||||
"$ref": "#/components/responses/Unauthorized"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/components/responses/Forbidden"
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"bearerAuth": [ ]
|
||||
}
|
||||
],
|
||||
"summary": "Change password",
|
||||
"tags": [
|
||||
"Auth"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/login/password": {
|
||||
"post": {
|
||||
"description": "Password-based login fallback for local development.",
|
||||
"operationId": "AuthController.loginWithPassword",
|
||||
"parameters": [ ],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/PasswordLoginRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/TokenResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Bearer token when credentials are valid."
|
||||
},
|
||||
"400": {
|
||||
"$ref": "#/components/responses/BadRequest"
|
||||
}
|
||||
},
|
||||
"summary": "Password login",
|
||||
"tags": [
|
||||
"Auth"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/api/v1/auth/otp/request": {
|
||||
"post": {
|
||||
"description": "Sends a one-time code by email through Mailpit locally.",
|
||||
@@ -2591,7 +2458,7 @@
|
||||
},
|
||||
"/api/v1/auth/register": {
|
||||
"post": {
|
||||
"description": "Creates a citizen account with personal data and password.",
|
||||
"description": "Creates a citizen account with personal data.",
|
||||
"operationId": "AuthController.registerCitizen",
|
||||
"parameters": [ ],
|
||||
"requestBody": {
|
||||
|
||||
Reference in New Issue
Block a user