Skip to content

✨ [#2] feat: add login/logut flow#27

Merged
svenvandescheur merged 6 commits into
mainfrom
feature/2-login-logout
Feb 23, 2026
Merged

✨ [#2] feat: add login/logut flow#27
svenvandescheur merged 6 commits into
mainfrom
feature/2-login-logout

Conversation

@svenvandescheur
Copy link
Copy Markdown
Collaborator

Fixes #2

Changes

  • API paths for auth now start with /api/v1/accounts/
  • Logout uses GET
  • Slightly changes folder structure for frontend
  • Introduces login/logout flow

Comment thread src/opendms/frontend/src/routes/login/login.tsx
Comment thread src/opendms/frontend/src/routes/login/login.component.tsx Outdated
Comment thread src/opendms/frontend/src/routes/login/login.component.tsx Outdated
Comment thread src/opendms/frontend/src/routes/login/login.component.tsx Outdated

type LoginFormType = TypedSerializedFormData<"username" | "password">;

const handleSubmit = (_: FormEvent<HTMLFormElement>, data: LoginFormType) => {
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.

FormEvent

Deprecated:
FormEvent doesn't actually exist. You probably meant to use ChangeEvent, InputEvent, SubmitEvent, or just SyntheticEvent instead depending on the event type.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but I think we need to change admin UI?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Comment thread src/opendms/frontend/src/context.ts Outdated
Comment thread src/opendms/frontend/src/root.tsx
@svenvandescheur svenvandescheur merged commit 8dfd958 into main Feb 23, 2026
9 checks passed
@danielmursa-dev danielmursa-dev deleted the feature/2-login-logout branch March 31, 2026 12:28
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.

As a user I want to be able to log in

2 participants