How to generate an Id with some word (eg:exam234235) for a particular user


#1

I need to generate ID for each user when they signup into meteor account with some starting word
(eg: example56789)
Any Suggestions.


#2

Can you be more specific about the requirements of the ID?


#3

Would this underscore function do the job?
http://underscorejs.org/#uniqueId


#4

Thanks @jorgeer for the help :smiley:


#5

Thanks for response @copleykj found the solution

while creating a user i have added a profile field where starting with a word and adding an id to it (“value”+id);