Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename secret, stop translating exceptions
Patryk Zawadzki53bb7f6e6379
diff --git a/saleor/registration/utils.py b/saleor/registration/utils.pyindex c9855b97ce..7b00ed6493 100644--- a/saleor/registration/utils.py+++ b/saleor/registration/utils.py@@ -8,7 +8,6 @@ except ImportError:from django.core.urlresolvers import reversefrom django.conf import settingsfrom django.contrib.auth import get_user_model-from django.utils.translation import ugettext_lazy as _import requests@@ -135,7 +134,7 @@ class GoogleClient(OAuth2Client):service = GOOGLEclient_id = settings.GOOGLE_CLIENT_ID- client_secret = settings.GOOGLE_SECRET+ client_secret = settings.GOOGLE_CLIENT_SECRETauth_uri = 'https://accounts.google.com/o/oauth2/auth'token_uri = 'https://accounts.google.com/o/oauth2/token'@@ -149,7 +148,7 @@ class GoogleClient(OAuth2Client):if response['verified_email']:return responseelse:- raise ValueError(_('Google account not verified.'))+ raise ValueError('Google account not verified.')def extract_error_from_response(self, response_content):return response_content['error']@@ -173,7 +172,7 @@ class FacebookClient(OAuth2Client):if response['verified']:return responseelse:- raise ValueError(_('Facebook account not verified.'))+ raise ValueError('Facebook account not verified.')def extract_error_from_response(self, response_content):return response_content['error']['message']diff --git a/saleor/settings.py b/saleor/settings.pyindex 0c1ce14498..666a6df841 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -193,7 +193,7 @@ FACEBOOK_SECRET = NoneGOOGLE_ANALYTICS_TRACKING_ID = NoneGOOGLE_CLIENT_ID = None-GOOGLE_SECRET = None+GOOGLE_CLIENT_SECRET = NonePAYMENT_BASE_URL = 'http://%s/' % CANONICAL_HOSTNAME