How do i make a profile feild unique ?
For example.. i create somekind of ID feild with profile module. How can i make this feild unique, as not to allow same ID number for multiple users. I know drupal is doing this checking on e-mail and user name, but I could not find this feature in custom profile feilds.

Comments

smilodon’s picture

admin/access/rules/add is very interesting... There it is possible to deny/allow pre user name or e-mail address. Sad that it is not integrated with profile module.

smilodon’s picture

Anyone knows if there is a solution about my issue ?

heine’s picture

Why not use the user id?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

smilodon’s picture

because my ID is for example the passport ID.. now how do i make the user ID = passport id ??? Or i want to make a coupon system, where no one gets same coupon or ID number or word or whatever else on his profile.
So i use profile.module, but how do i assure that someone hasn't the same feild filled with the same ID ? I CANT !
I am using phpmyadmin to look into the database and using its soring abilityes to find the dublicate ID users at the moment. This not fast,good and comforabtle way to do it :( . I really htought there is a solution for that.

smilodon’s picture

Anyone ?

doomed’s picture

Hi,

Im trying to do something similar, not for user profiles, but for nodes created with CCK.

Did you solve this problem?