Index: openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl,v diff -u -r1.58.2.2 -r1.58.2.3 --- openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 2 Jan 2004 16:39:43 -0000 1.58.2.2 +++ openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 2 Jan 2004 16:57:50 -0000 1.58.2.3 @@ -845,7 +845,7 @@ # If so, add -2 or -3 or ... to make it unique if { ![empty_string_p $existing_user_id] } { - set match "$user_info(username)-%" + set match "${username}-%" set existing_usernames [db_list select_existing_usernames { select username from users