[ic] Logging password change in Admin breaks userdb functions

Jeff Boes jeff at endpoint.com
Tue Apr 19 16:43:36 UTC 2011


I'm quite puzzled by this one: we simply wanted to log when someone modified a password in the IC admin, by emitting a 
message to a dedicated log file. I tracked down the action to user_change_pass.html, made my own copy of that in my 
catalog directory (pages/admin/user_change_password.html), and added:

	[button text="[if scratch old_needed][L]Change[/L][else][L]Set Password[/L][/else][/if]"]
	mv_todo=set
    ***  mv_check=log_password_change
	mv_click=MMChange
	[/button]

(I also tried this with "mv_click=log_password_change", "mv_cleanup=...", inverting the order of the two mv_* variables, 
with no improvement.)

If "log_password_change" is in the mix, the operation to change the password fails with:

Attempted database operation without table, fields, or key.
  Table: ''
  Fields:''
  Key:   ''

which is emitted from deep within Vend::Data. If I comment out log_password_change, it works fine.

log_password_change could not be more innocuous:

  [log type=error file="var/log/access.log" hide=1 interpolate=1]
  Password modified for user "[cgi mv_username]"
  [/log]

What the heck is going on here?

-- 
Jeff Boes  <><
jeff at endpoint.com



More information about the interchange-users mailing list