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.24 -r1.25 --- openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 10 Sep 2003 13:13:48 -0000 1.24 +++ openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 10 Sep 2003 16:42:18 -0000 1.25 @@ -110,7 +110,6 @@ # auth_info(account_status) # auth_info(account_message) - # Verify auth_info/auth_message return codes switch $auth_info(auth_status) { ok { @@ -142,7 +141,9 @@ switch $auth_info(account_status) { ok { # Continue below - set auth_info(account_message) {} + if { ![info exists auth_info(account_message)] } { + set auth_info(account_message) {} + } } closed { if { ![exists_and_not_null auth_info(account_message)] } { @@ -176,6 +177,9 @@ switch $auth_info(account_status) { ok { # Continue below + if { ![info exists auth_info(account_message)] } { + set auth_info(account_message) {} + } } closed { if { ![exists_and_not_null auth_info(account_message)] } { @@ -194,8 +198,12 @@ } if { [exists_and_not_null remote_account_message] } { - # Concatenate local and remote account messages - set auth_info(account_message) "

[auth::authority::get_element -authority_id $authority_id -element pretty_name]: $remote_account_message

[ad_system_name]: $auth_info(account_message)

" + if { [exists_and_not_null auth_info(account_message)] } { + # Concatenate local and remote account messages + set auth_info(account_message) "

[auth::authority::get_element -authority_id $authority_id -element pretty_name]: $remote_account_message

[ad_system_name]: $auth_info(account_message)

" + } else { + set auth_info(account_message) $remote_account_message + } } # Issue login cookie if login was successful