OpenVBX
OpenVBX copied to clipboard
deleting & re-adding a user
After I delete a user I am unable to add that same user to the system again due to errors "email address already in use" or "phone already in use."
sounds like it should be easy enough to fix. it probably just needs to re-activate the user in that case - or would you rather it gave you the option?
Doesn't matter to me - so long as I can get the user up and running again.
This issue needs to be reproduced and fixed in the next release.
Maybe a little late on this, but in v.80 duplicate emails (and it sounds like phone numbers) don't fail with a graceful error message (they show the query statement with the error) - the vbx_user.php model could use a function for verifying duplicity, something like:
function userExists($email)
{
$user = VBX_User::get(array('email' => $email));
if(empty($user))
{
return False;
}
else
{
return True;
}
}
and then make a subsequent call in controllers/account.php in the edit function to validate the item doesn't already exist
I've been getting the same problem. Except the user shows up after getting the error. Not exactly what I'm after. I wanted to have it re-send the new user email, but I don't think it does that.
I can confirm this is still happening. I created a user, deleted it, and when trying to re-add, it gives the error.
It just seems like they've stopped supporting this product, and of course we don't know enough about all of this to sort it out ourselves. I'd be willing to pay someone to fix it, but I doubt anybody is interested. I wish Twilio would get back on this project.