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

Invalid verification token results in internal server error #1249

Open
baranyildirim opened this issue Feb 7, 2025 · 3 comments
Open

Invalid verification token results in internal server error #1249

baranyildirim opened this issue Feb 7, 2025 · 3 comments

Comments

@baranyildirim
Copy link

Description

By default, the handler for /api/auth/verify/{token} returns an internal server error (500) if the token cannot be found.

To Reproduce

Use default SaaS template.
Make a GET request like:

curl localhost:9000/api/auth/verify/asdasdkad

Expected Behavior

Shouldn't this be a bad request (400)?

@kaplanelad
Copy link
Contributor

Yes, you're right.
We will fix it.

@baranyildirim
Copy link
Author

Yes, you're right. We will fix it.

Mind if I put up a PR?

@kaplanelad
Copy link
Contributor

Sure, go for it.
The changes should be made in here.
And align the tests here

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

No branches or pull requests

2 participants