Update settings, fix typo
This commit is contained in:
parent
86613c881e
commit
4762751fc9
|
|
@ -29,7 +29,7 @@ export default [
|
||||||
name: 'verifyEmail',
|
name: 'verifyEmail',
|
||||||
props: {
|
props: {
|
||||||
title: 'Bitte schauen Sie in Ihr Postfach',
|
title: 'Bitte schauen Sie in Ihr Postfach',
|
||||||
errorMessage: 'Ihre E-Mail Adresse ist noch nicht verifiziert. Wir haben eine E-Mail mit einem Aktivierungslink an Sie verschickt.'
|
errorMessage: 'Ihre E-Mail-Adresse ist noch nicht verifiziert. Wir haben eine E-Mail mit einem Aktivierungslink an Sie verschickt.'
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
public: true,
|
public: true,
|
||||||
|
|
|
||||||
|
|
@ -400,7 +400,6 @@ ALLOW_BETA_LOGIN = True
|
||||||
HEP_URL = os.environ.get("HEP_URL")
|
HEP_URL = os.environ.get("HEP_URL")
|
||||||
|
|
||||||
# HEP Oauth
|
# HEP Oauth
|
||||||
OAUTH_API_BASE_URL = os.environ.get("OAUTH_API_BASE_URL")
|
|
||||||
AUTHLIB_OAUTH_CLIENTS = {
|
AUTHLIB_OAUTH_CLIENTS = {
|
||||||
'hep': {
|
'hep': {
|
||||||
'client_id': os.environ.get("OAUTH_CLIENT_ID"),
|
'client_id': os.environ.get("OAUTH_CLIENT_ID"),
|
||||||
|
|
@ -411,7 +410,7 @@ AUTHLIB_OAUTH_CLIENTS = {
|
||||||
'access_token_params': None,
|
'access_token_params': None,
|
||||||
'refresh_token_url': None,
|
'refresh_token_url': None,
|
||||||
'authorize_url': os.environ.get("OAUTH_AUTHORIZE_URL"),
|
'authorize_url': os.environ.get("OAUTH_AUTHORIZE_URL"),
|
||||||
'api_base_url': OAUTH_API_BASE_URL,
|
'api_base_url': os.environ.get("OAUTH_API_BASE_URL"),
|
||||||
'client_kwargs': {
|
'client_kwargs': {
|
||||||
'scope': 'orders',
|
'scope': 'orders',
|
||||||
'token_endpoint_auth_method': 'client_secret_post',
|
'token_endpoint_auth_method': 'client_secret_post',
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ class HepClient:
|
||||||
'scope': ''
|
'scope': ''
|
||||||
}
|
}
|
||||||
|
|
||||||
response = requests.post(f'{settings.OAUTH_API_BASE_URL}/oauth/token', json=data)
|
response = requests.post(f'{settings.AUTHLIB_OAUTH_CLIENTS["hep"]["api_base_url"]}/oauth/token', json=data)
|
||||||
return self._handle_response(response).json()
|
return self._handle_response(response).json()
|
||||||
|
|
||||||
def is_email_verified(self, user_data):
|
def is_email_verified(self, user_data):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue