]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
fix: toolkit: make email regex pattern match pve-common
authorStefan Sterz <s.sterz@proxmox.com>
Wed, 7 Sep 2022 09:37:40 +0000 (11:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Sep 2022 15:14:45 +0000 (17:14 +0200)
commiteaa8d084e8d58d3c92f38ab6522aac8b71773e6c
treea903170faf6e33a6ad1fa891f0da0782ba1affc8
parent94d84581c22ef3ecbdff73200654de40616d00c6
fix: toolkit: make email regex pattern match pve-common

`proxmoxMail` used its own regex pattern to validate emails. that
meant certain email addresses were rejected by the front-end that
were accepted by the backend that uses the functionality from
`pve-common`. examples include the following:

- "user@host.test-tld"
- "user-@host.testtld"
- "user@host"

reported on the forum: https://forum.proxmox.com/threads/gui-bugulance-using-the-user-add-gui-interface.114743/

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/Toolkit.js