Skip to content

Commit

Permalink
added required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
d3rpp committed Aug 23, 2024
1 parent 26d466f commit 6d7675f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/account/account-header-component.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger>
<Avatar.Root>
{#if user}
{#if user && user.profile_picture}
<Avatar.Image
src={`/api/public_assets/${user.profile_picture}`}
alt="Profile Photo"
Expand Down
9 changes: 6 additions & 3 deletions src/routes/(auth)/auth/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,25 +74,28 @@
<form {onsubmit}>
<div class="grid w-full items-center gap-4">
<div class="flex flex-col space-y-1.5">
<Label for="username">Username</Label>
<Label for="username">Username&nbsp;<span class="text-destructive-foreground">*</span></Label>
<Input
id="username"
type="text"
required={true}
bind:value={username}
/>
</div>

<div class="flex flex-col space-y-1.5">
<Label for="password">Password</Label>
<Label for="password">Password&nbsp;<span class="text-destructive-foreground">*</span></Label>
<Input
id="password"
type="password"
required={true}
bind:value={password}
/>
</div>

<div class="flex flex-col space-y-1.5">
<Label for="secret-key">Secret Key</Label>
<Label for="secret-key">Secret Key&nbsp;<span class="text-destructive-foreground">*</span></Label>
<!-- TODO: make this required -->
<FileInput
id="secret-key"
class="cursor-pointer"
Expand Down

0 comments on commit 6d7675f

Please sign in to comment.