/[glsr]/trunk/site/user.py
Gentoo

Diff of /trunk/site/user.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 151 Revision 152
233 "user_language = %s, user_location = %s, user_website = %s") 233 "user_language = %s, user_location = %s, user_website = %s")
234 234
235 if passwd is None or passwd == "": 235 if passwd is None or passwd == "":
236 self._db.query( 236 self._db.query(
237 "UPDATE %(prefix)suser " % {'prefix': config.db['prefix']} + 237 "UPDATE %(prefix)suser " % {'prefix': config.db['prefix']} +
238 "SET %s" % set_str, 238 "SET %s WHERE user_id = %%s" % set_str,
239 (fullname, email, user_type, language, location, website), 239 (fullname, email, user_type, language, location, website,
240 fetch='none') 240 self._uid), fetch='none')
241 241
242 else: 242 else:
243 self._db.query( 243 self._db.query(
244 "UPDATE %(prefix)suser " % {'prefix': config.db['prefix']} + 244 "UPDATE %(prefix)suser " % {'prefix': config.db['prefix']} +
245 "SET %s, user_passwd = %%s" % set_str, 245 "SET %s, user_passwd = %%s WHERE user_id = %%s" % set_str,
246 (fullname, email, user_type, language, location, website, 246 (fullname, email, user_type, language, location, website,
247 str(md5_passwd(passwd))), fetch='none') 247 str(md5_passwd(passwd)), self._uid), fetch='none')
248 248
249 249

Legend:
Removed from v.151  
changed lines
  Added in v.152

  ViewVC Help
Powered by ViewVC 1.1.20