wpgsh / cloud4water

Apache License 2.0
0 stars 0 forks source link

question of the register #6

Closed yedengfang closed 8 years ago

yedengfang commented 8 years ago

@alexlukichev I'm xintong yu,charge of the user register module development. I have questions about the step:

  1. When we complete to register ,which page we turn to , is login.jsp or index.jsp and how to deal whith token? 2.When we register, system should give an id to flag the user in the sql, which module to do this ,now there is no document to generate the id , so when we create a user ,the id is always 0 in the sql , how to solve it ?
alexlukichev commented 8 years ago

1) User registration has nothing to do with access token generation 2) You choose the way to generate a user id yourself. However note, that there may be multiple instances of the application running in the cluster and thus you need to ensure uniqueness of the id. One way to do that is to rely on MySQL generators, another way is to use UUID version 1 (in the latter case user id type will need to be changed to string)