OpenVBX icon indicating copy to clipboard operation
OpenVBX copied to clipboard

deleting & re-adding a user

Open stuboo opened this issue 14 years ago • 7 comments

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."

stuboo avatar Jul 05 '10 21:07 stuboo

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?

andrewwatson avatar Jul 06 '10 18:07 andrewwatson

Doesn't matter to me - so long as I can get the user up and running again.

stuboo avatar Jul 06 '10 18:07 stuboo

This issue needs to be reproduced and fixed in the next release.

minddog avatar Jul 26 '10 15:07 minddog

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

jsoncorwin avatar Nov 04 '10 00:11 jsoncorwin

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.

Cramertech avatar Jul 01 '16 18:07 Cramertech

I can confirm this is still happening. I created a user, deleted it, and when trying to re-add, it gives the error.

mazarian avatar Sep 29 '16 20:09 mazarian

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.

Cramertech avatar Oct 01 '16 00:10 Cramertech