mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3581] Team owner email address validation need improve #1228
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1228
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WestFarmer on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3581
Originally assigned to: @joeljstephen on GitHub.
Is there an existing issue for this?
Current behavior
for example :
this is a valid email address, but when input it as owner email when creating team in admin dashboard.
client side validation shows 'please enter a valid owner email'
maybe this is caused by third level domain name in email address ?
this is blocking administrator to create team.
Steps to reproduce
Environment
Production
Version
Self-hosted
@liyasthomas commented on GitHub (Nov 22, 2023):
fanguogang@itps.xxx.comdoesn't seem like an invalid email ID pattern.@balub is this because the user email is not found in the users' table — can you check?
@balub commented on GitHub (Nov 22, 2023):
There is a chance the regex we use may consider this as an invalid email. It's just a theory that we will test it out then we'll know for sure.
@liyasthomas commented on GitHub (Nov 22, 2023):
If that's the case, if it's a front-end validation error, loop in @JoelJacobStephen to fix.
@WestFarmer commented on GitHub (Nov 22, 2023):
it's front-end, no request made to backends yet. @liyasthomas
@WestFarmer commented on GitHub (Nov 22, 2023):
from the source code.
only checking for non-empty value for owner email:
When entering all the correct values at once, there is no problem. But there will be problems if the following scenario occurs:
@liyasthomas
@liyasthomas commented on GitHub (Nov 22, 2023):
@WestFarmer when you submit again, is the email input field empty or not? Does it actually have a valid email ID at that time?
@WestFarmer commented on GitHub (Nov 22, 2023):
of course, the email remains there.
@joeljstephen commented on GitHub (Nov 23, 2023):
@WestFarmer I have raised a PR to fix the issue and have validated the fix from my end. Can you let me know if this PR properly fixes your issue?
@WestFarmer commented on GitHub (Nov 24, 2023):
How can I help to verify ? Do I need to checkout PR and build locally ?
@balub commented on GitHub (Jan 11, 2024):
@WestFarmer Yes, you can checkout to the branch the PR is raised against build run it locally and try.
@joeljstephen commented on GitHub (Apr 10, 2024):
@WestFarmer I will be closing this issue in a few days as this has been fixed. Please let us know if you are still facing the same issue in the latest build.