Projet

Général

Profil

0001-contacts-log-user-creation-requests-to-authentic-288.patch

Frédéric Péters, 10 décembre 2018 19:20

Télécharger (1,27 ko)

Voir les différences:

Subject: [PATCH] contacts: log user creation requests to authentic (#28828)

 welco/contacts/views.py | 4 ++++
 1 file changed, 4 insertions(+)
welco/contacts/views.py
15 15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 16

  
17 17
import json
18
import logging
18 19
import random
19 20
import requests
20 21
import time
......
140 141
        url = authentic_url + 'api/users/?orig=%s' % authentic_orig
141 142
        signed_url = sign_url(url, authentic_secret)
142 143

  
144
        logger = logging.getLogger(__name__)
145
        logger.info('POST to authentic (%r)', json.dumps(msg))
143 146
        authentic_response = requests.post(
144 147
                signed_url,
145 148
                data=json.dumps(msg),
146 149
                headers={'Content-type': 'application/json'})
150
        logger.info('Got authentic response (%r)', authentic_response.text)
147 151

  
148 152
        user_uuid = authentic_response.json().get('uuid')
149 153
        for i in range(100):
150
-