]> git.proxmox.com Git - pve-installer.git/commit - proxinstall
restrict admin email to same format as the JSONSchema
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 28 Nov 2019 12:39:56 +0000 (13:39 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Nov 2019 13:08:05 +0000 (14:08 +0100)
commitc82fffd8681f033b64f382501138067f64640454
tree1997366b06682de62ac07ff1970ab9aa6a2a200f
parentb3afd5d162f3c40c1e5d614594a374387f549f89
restrict admin email to same format as the JSONSchema

Use the same regex as the 'email' format in JSONSchema (copied from there).
Otherwise, users can enter an email address which does not match our
schema and breaks the userlist API Call with a 'return value
verification failed', and one cannot rectify this via the gui
(the user has to manually edit the user.cfg or set the email via
pveum)

i noticed this while testing and using the 'insert emoji' menu in the
context menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
proxinstall