When 2 people self register account on Koha, if they have same firstname and lastname, then they will have same username with different password. Then the second username can not login. I think we should change the second username to something like firstname.lastname2 if there is an exist username like firstname.lastname.
(In reply to Nguyen Quoc Uy from comment #0) > When 2 people self register account on Koha, if they have same firstname and > lastname, then they will have same username with different password. Then > the second username can not login. > I think we should change the second username to something like > firstname.lastname2 if there is an exist username like firstname.lastname. Hi, Do not know what your firstname and lastname is btw :) The code in Members.pm contains two routines for generating the userid. Generate_Userid generates the suggested userid and Check_Userid does actually check if that userid is not in the database. I tried to reproduce your problem, but in my case with the same firstname and lastname a userid was generated that was followed by a digit 1. So: firstname.lastname1 I am curious if your problem somehow has to do with special characters or so. Could you give me the exact firstname and lastname to reproduce this error please? Thanks.
I also tried to reprocude this on current master and see the same results as Marcel - for me the second person's userid has a number in the end, avoiding a collision.
Closing this report.