-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: Fixes #22 and #27 by adding custom signin page and show password with shadcn #42
Conversation
@shreyas0924 is attempting to deploy a commit to the My Team Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an alert to notify the user about the error
redirect: false, | ||
}); | ||
|
||
if (!res?.error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be also better to add an alert or something to notify the user about the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change static message to dynamic
@@ -26,6 +28,13 @@ const Signin = () => { | |||
|
|||
if (!res?.error) { | |||
router.push('/'); | |||
} else { | |||
toast('Error Signing in', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this error be more specific? res?.error probably. Might be good to display the returned error insted of static message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah should address this in a follow up, merging for now as a v1
Fixes #22 and #27
custom.login.mp4