Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add advanced section in login #38

Merged
merged 5 commits into from
Jul 10, 2024
Merged

Conversation

hkdeman
Copy link
Contributor

@hkdeman hkdeman commented Jul 5, 2024

  • [core]: add extra advanced form variables in graphql schema and logic to parse that in the token
  • [frontend]: add advanced section in login

feat(frontend): add advanced section in login

const handleSubmit = useCallback(() => {
if (([DatabaseType.MySql, DatabaseType.Postgres].includes(databaseType.id as DatabaseType) && (hostName.length === 0 || database.length === 0 || username.length === 0 || password.length === 0))
|| (databaseType.id === DatabaseType.Sqlite3 && database.length === 0)
|| (databaseType.id === DatabaseType.MongoDb && (hostName.length === 0 || username.length === 0 || password.length === 0))
|| (databaseType.id === DatabaseType.Redis && (hostName.length === 0 || password.length === 0))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should allow Redis without password.

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.

1 participant