Skip to content

Commit 22da3e2

Browse files
committed
doc: add check for db.tx_Source to Reauth examples
Otherwise it triggers on roundup-admin et al
1 parent 4c31c39 commit 22da3e2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/customizing.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,12 @@ contents::
18361836
# the user has confirmed their identity
18371837
return
18381838

1839+
if db.tx_Source not in ("web"):
1840+
# the user is using rest, xmlrpc, command line,
1841+
# email (unlikely) which don't support interactive
1842+
# verification
1843+
return
1844+
18391845
# if the password or email are changing, require id confirmation
18401846
if 'password' in newvalues:
18411847
raise Reauth('Add an optional message to the user')

doc/reference.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,12 @@ user to submit each sensitive property separately. For example::
13211321
'at the same time is not allowed. Please '
13221322
'submit two changes.')
13231323

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
1329+
13241330
if 'password' in newvalues and not hasattr(db, 'reauth_done'):
13251331
raise Reauth()
13261332

0 commit comments

Comments
 (0)