From e3765f7b09131d745e192d2d7771e7f939c50e30 Mon Sep 17 00:00:00 2001 From: GotPPay Date: Thu, 26 Jul 2018 15:34:02 +0200 Subject: [PATCH] improve environment handling --- environment.env | 2 +- frontend/src/constants/authConstants.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/environment.env b/environment.env index 0b2a9cb..c459f64 100644 --- a/environment.env +++ b/environment.env @@ -24,4 +24,4 @@ WP_SECURE_AUTH_SALT=generate_me WP_LOGGED_IN_SALT=generate_me WP_NONCE_SALT=generate_me -WP_JWT_AUTH_SECRET_KEY=generate_me \ No newline at end of file +WP_JWT_AUTH_SECRET_KEY=generate_me diff --git a/frontend/src/constants/authConstants.js b/frontend/src/constants/authConstants.js index d70bd8f..f02b48a 100644 --- a/frontend/src/constants/authConstants.js +++ b/frontend/src/constants/authConstants.js @@ -1,4 +1,4 @@ -import {API_SERVER_BASE} from '../config.js'; +import {API_SERVER_LOGIN} from '../config.js'; const MODULE = 'AUTH_'; @@ -36,7 +36,7 @@ export const loginMessages = { CHANGE_LATER: 'You can change your password in 5 minutes!', INVALID_REFRESH_TOKEN: 'Your session has expired!', EXPIRED_SESSION : 'Your session has expired!', - INVALID_USER_TYPE: 'Users with other roles than "customer" must use this url for login: ' + API_SERVER_BASE, + INVALID_USER_TYPE: 'Users with other roles than "customer" must use this url for login: ' + API_SERVER_LOGIN, INVALID_CHANGE_TOKEN: 'Invalid change token value!', PASSWORDS_MISSING: 'Password can not be empty', WRONG_USERNAME: 'Invalid username!',