From a3a27ced66360136137d909568d8c795a88f71e5 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 28 Feb 2021 13:41:18 +0200 Subject: [PATCH] Updated UI --- app/controllers/web/console.php | 5 ++- app/views/console/users/index.phtml | 70 ++++++++++++++++++++++++++--- 2 files changed, 69 insertions(+), 6 deletions(-) diff --git a/app/controllers/web/console.php b/app/controllers/web/console.php index b41f1d1f86..2506c70070 100644 --- a/app/controllers/web/console.php +++ b/app/controllers/web/console.php @@ -323,7 +323,10 @@ App::get('/console/users') $page = new View(__DIR__.'/../../views/console/users/index.phtml'); - $page->setParam('providers', Config::getParam('providers')); + $page + ->setParam('auth', Config::getParam('auth')) + ->setParam('providers', Config::getParam('providers')) + ; $layout ->setParam('title', APP_NAME.' - Users') diff --git a/app/views/console/users/index.phtml b/app/views/console/users/index.phtml index b41730baf9..90b5bc1462 100644 --- a/app/views/console/users/index.phtml +++ b/app/views/console/users/index.phtml @@ -1,5 +1,6 @@ getParam('providers', []); +$auth = $this->getParam('auth', []); ?>
@@ -300,9 +301,67 @@ $providers = $this->getParam('providers', []);
  • -

    OAuth2 Providers

    +

    Unlimited Users Set Limit

    + +

    Settings

    -
    Choose auth methods you wish to use.

    + +
      + $method): + $key = $method['key'] ?? ''; + $name = $method['name'] ?? ''; + $icon = $method['icon'] ?? ''; + $docs = $method['docs'] ?? ''; + $enabled = $method['enabled'] ?? false; + ?> +
    • +
      + +
      + + + + + + + + +
      + + + Email/Password Logo + + escape($name); ?> soon + + +

      + Docs +

      + +
      +
    • + +
    + +

    OAuth2 Providers

    + +
    getParam('providers', []); $data): if (isset($data['enabled']) && !$data['enabled']) { continue; } if (isset($data['mock']) && $data['mock']) { continue; } + $sandbox = $data['sandbox'] ?? false; $form = $data['form'] ?? false; $name = $data['name'] ?? 'Unknown'; $beta = $data['beta'] ?? false; @@ -320,7 +380,7 @@ $providers = $this->getParam('providers', []);