Reputation: 483
In my Application I have this url: domain.com/u/username
And in the registration form I have these fields: (Full name, email, password) However, How do I generate a temporary user id to use it in the url until my user fills his profile (including his username) so I use it in the url?
Something like this: domain.com/u/43r33-q23r4
So, If the user selected his username then it will be used in the url, Otherwise the unique identifier (ex: 23r43-34t4y) will be used.
Upvotes: 0
Views: 141
Reputation: 1559
you can add UUID column and use UUID package to auto generate it when the user register then you can check by username or UUID column
Upvotes: 1