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 -r1.58.2.1 --- openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 6 Nov 2003 09:44:13 -0000 1.58 +++ openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 19 Nov 2003 00:46:22 -0000 1.58.2.1 @@ -413,6 +413,9 @@ } } + set email [string trim $email] + set username [string trim $username] + foreach elm [get_all_registration_elements] { if { [info exists $elm] } { set user_info($elm) [set $elm] @@ -1359,6 +1362,13 @@ } } + if { [info exists user(email)] } { + set user(email) [string trim $user(email)] + } + if { [info exists user(username)] } { + set user(username) [string trim $user(username)] + } + if { $update_p } { set user(user_id) [acs_user::get_by_username \ -authority_id $authority_id \