Changeset 246155 in webkit


Ignore:
Timestamp:
Jun 6, 2019 9:34:45 AM (5 years ago)
Author:
ap@apple.com
Message:

block-spammers tool doesn't block e-mail
https://bugs.webkit.org/show_bug.cgi?id=198570

Reviewed by Jonathan Bedard.

  • Scripts/block-spammers: (disable_user): Corrected the parameters, Bugzilla doesn't

recognize "false" here. Also, request body is unnecessary.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r246148 r246155  
     12019-06-06  Alexey Proskuryakov  <ap@apple.com>
     2
     3        block-spammers tool doesn't block e-mail
     4        https://bugs.webkit.org/show_bug.cgi?id=198570
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * Scripts/block-spammers: (disable_user): Corrected the parameters, Bugzilla doesn't
     9        recognize "false" here. Also, request body is unnecessary.
     10
    1112019-06-06  Carlos Garcia Campos  <cgarcia@igalia.com>
    212
  • trunk/Tools/Scripts/block-spammers

    r244943 r246155  
    8686def disable_user(user_id, reason):
    8787    response = requests.put('https://bugs.webkit.org/rest/user/' + str(user_id),
    88         json={'email_enabled': False, 'login_denied_text': reason},
    89         params = {'email_enabled': False, 'login_denied_text': reason, 'token': bugzilla_token})
     88        params = {'email_enabled': 0, 'login_denied_text': reason, 'token': bugzilla_token})
    9089    response.raise_for_status()
    9190
Note: See TracChangeset for help on using the changeset viewer.