Enable login by role both on frontend and backend

This commit is contained in:
Almira Krdzic
2018-10-22 09:47:48 +02:00
parent 87f408125d
commit 21fafc5a43
20 changed files with 618 additions and 367 deletions

View File

@@ -20,7 +20,7 @@ define('WP_ENV', env('WP_ENV') ?: 'development');
$env_config = __DIR__ . '/environments/' . WP_ENV . '.php';
if (file_exists($env_config)) {
require_once $env_config;
require_once $env_config;
}
/**
@@ -63,6 +63,15 @@ define('NONCE_SALT', env('WP_NONCE_SALT'));
define('JWT_AUTH_SECRET_KEY', env('WP_JWT_AUTH_SECRET_KEY'));
define('JWT_AUTH_CORS_ENABLE', true);
/**
* Emails
*
*/
define('SENDGRID_API_KEY', env('WP_SENDGRID_API_KEY'));
define('SENDGRID_FROM_EMAIL', env('WP_SENDGRID_FROM_EMAIL') ?: 'info@wiaas.com');
define('SENDGRID_FROM_NAME', env('WP_SENDGRID_FROM_NAME' ?: 'Wiaas'));
/**
* Wiaas Env variables
*/
@@ -79,5 +88,5 @@ define('DISALLOW_FILE_EDIT', true);
* Bootstrap WordPress
*/
if (!defined('ABSPATH')) {
define('ABSPATH', $webroot_dir . '/wp/');
define('ABSPATH', $webroot_dir . '/wp/');
}