So you set up pre defined members and labeled them accordingly AA0001.
then each member logs in using the predefined name you created.
Thus, if name already exists then i just need my password to login. and suggest disabling name field so user can not change name.
or you may create a look up table with all your predefined names and when the user creates account where user id 5 = name id 5 (AA0005) populates the name field and user never puts name in.
Hi webdesignerchristian, thanks for your answer! But I´m not sure I´m following you…
Maybe the answer is just removing the registration form and let users only log in to their premade accounts after I pre registered them (a001, a002, a003, etc)
But… How can I let them set their own password and email when they log in into their accounts? Will I have to inform users about their password preset by me using this method? Maybe a plugin that let´s users choose their password upon first login?
The thing is that I probably focused the whole thing wrong… I have seen this used in many applications, but I´m not sure I´m understanding it.
Users have a alphanumeric ID that needs to be their username. (or at list, something that stays in a url for example mysite.com/user/A001
Users set their profile, adding their ID number on their profile.
But… here´s the catch, That ID has to be previously stored somewhere, just in case a (spammer, or external person to the group) wants to register himself with a made up id, won´t be able to complete the form.
Hopefully someone understands what I´m trying to archive… I´m not even 100% understanding myself.
yeah im lost… lol no just kidding.
maybe easier this way for you. create a separate table with list of all available names, then as user registers check against the list that the name is there. if so then continue registration, if not then stay on page and retry.
if (username == one on list) {register}else {try again}
it may be to be coded “recursive” i think is the word.
if (username !== one on list) {try again}else {register}