comparison doc/reference.txt @ 8430:056061cfe135

doc: add check for db.tx_Source to Reauth examples Otherwise it triggers on roundup-admin et al
author John Rouillard <rouilj@ieee.org>
date Mon, 25 Aug 2025 20:30:51 -0400
parents 0663a7bcef6c
children 5346abcf429e
comparison
equal deleted inserted replaced
8429:3210729950b1 8430:056061cfe135
1318 1318
1319 if 'password' in newvalues and 'realname' in newvalues: 1319 if 'password' in newvalues and 'realname' in newvalues:
1320 raise Reject('Changing the username and the realname ' 1320 raise Reject('Changing the username and the realname '
1321 'at the same time is not allowed. Please ' 1321 'at the same time is not allowed. Please '
1322 'submit two changes.') 1322 'submit two changes.')
1323
1324 if db.tx_Source not in ("web"):
1325 # the user is using rest, xmlrpc, command line,
1326 # email (unlikely) which don't support interactive
1327 # verification
1328 return
1323 1329
1324 if 'password' in newvalues and not hasattr(db, 'reauth_done'): 1330 if 'password' in newvalues and not hasattr(db, 'reauth_done'):
1325 raise Reauth() 1331 raise Reauth()
1326 1332
1327 if 'realname' in newvalues and not hasattr(db, 'reauth_done'): 1333 if 'realname' in newvalues and not hasattr(db, 'reauth_done'):

Roundup Issue Tracker: http://roundup-tracker.org/