ユーザー追加API Bug fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
FROM python:3.8
|
||||
FROM python:3.11.4
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
@@ -67,8 +67,8 @@ def sign_up_new_user(db, email: str, password: str, firstname: str,lastname: str
|
||||
schemas.UserCreate(
|
||||
email=email,
|
||||
password=password,
|
||||
firstname = firstname,
|
||||
lastname = lastname,
|
||||
first_name = firstname,
|
||||
last_name = lastname,
|
||||
is_active=True,
|
||||
is_superuser=False,
|
||||
),
|
||||
|
||||
@@ -3,8 +3,8 @@ import base64
|
||||
|
||||
PROJECT_NAME = "KintoneAppBuilder"
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = "postgres://maxz64:m@xz1205@alicornkintone.postgres.database.azure.com/postgres"
|
||||
#SQLALCHEMY_DATABASE_URI = "postgres://kabAdmin:P@ssw0rd!@kintonetooldb.postgres.database.azure.com/postgres"
|
||||
#SQLALCHEMY_DATABASE_URI = "postgres://maxz64:m@xz1205@alicornkintone.postgres.database.azure.com/postgres"
|
||||
SQLALCHEMY_DATABASE_URI = "postgres://kabAdmin:P@ssw0rd!@kintonetooldb.postgres.database.azure.com/postgres"
|
||||
|
||||
API_V1_STR = "/k/v1"
|
||||
|
||||
|
||||
@@ -20,9 +20,12 @@ class UserOut(UserBase):
|
||||
|
||||
|
||||
class UserCreate(UserBase):
|
||||
email:str
|
||||
password: str
|
||||
first_name: str
|
||||
last_name: str
|
||||
is_active:bool
|
||||
is_superuser:bool
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
@@ -19,9 +19,7 @@ app = FastAPI(
|
||||
)
|
||||
|
||||
origins = [
|
||||
"http://localhost:9000",
|
||||
"http://localhost",
|
||||
"http://localhost:8080",
|
||||
"*"
|
||||
]
|
||||
|
||||
app.add_middleware(
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
KAB_BACKEND_URL="http://127.0.0.1:8000/"
|
||||
KAB_BACKEND_URL="https://kab-backend.azurewebsites.net/"
|
||||
#KAB_BACKEND_URL="http://127.0.0.1:8000/"
|
||||
|
||||
|
||||
0
sample2.json
Normal file
0
sample2.json
Normal file
Reference in New Issue
Block a user