Skip to content

fixed generate_api_token#6

Open
mhdalik wants to merge 3 commits into
DocketGoAI:mainfrom
mhdalik:api-token
Open

fixed generate_api_token#6
mhdalik wants to merge 3 commits into
DocketGoAI:mainfrom
mhdalik:api-token

Conversation

@mhdalik

@mhdalik mhdalik commented Feb 13, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@docket-go docket-go left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use SQLAlchemy for SQLite3, Never call the commands directly, It will lead to SQLInjection

@docket-go

Copy link
Copy Markdown
Contributor

Base.metadata.create_all(engine)

This is breaking in my system @edwinsjohn @Eldhosee Could you check ?

@edwinsjohn edwinsjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@docket-go I tried running it, No problem with Base.metadata.create_all(engine). But when i tried calling generate_token function there were some problems with session.query(self). Can be solved by adding a nested class / By taking both functions out of ApiToken class and putting them into another class .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants