Skip to content

Commit

Permalink
fix: Password form
Browse files Browse the repository at this point in the history
  • Loading branch information
RichGriff committed Dec 9, 2024
1 parent 74b61c0 commit 93e38a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function PasswordForm({ data } : PasswordFormProps) {
</div>

<div className="md:col-span-2">
{session?.provider == "credentials" ? (
{session?.provider === "credentials" ? (
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="w-full space-y-6">
<div className="grid grid-cols-1 gap-x-6 gap-y-8 sm:max-w-xl sm:grid-cols-6">
Expand Down
3 changes: 1 addition & 2 deletions next_frontend/components/auth/LogoutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const LogoutButton = () => {
// signOut()
// }

signOut()

await signOut()
router.push('/login')
}
}
Expand Down
1 change: 1 addition & 0 deletions next_frontend/lib/authOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const authOptions: NextAuthOptions = {
if (response.ok) {
const result = await response.json();
user.key = result.key; // Include the key for GitHub users
user.provider = account.provider
return true;
}

Expand Down

0 comments on commit 93e38a0

Please sign in to comment.