From 6cbea9d19bf616774f0c89b218235469fd42a3c6 Mon Sep 17 00:00:00 2001 From: Praesidiarius Date: Thu, 23 Jan 2020 17:35:51 +0100 Subject: [PATCH] dep fixes --- composer.json | 1 - docs/book/index.md | 23 +++++++++++++++++++++++ mkdocs.yml | 11 +++-------- src/Controller/UserController.php | 2 +- view/layout/login.phtml | 2 +- 5 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 docs/book/index.md diff --git a/composer.json b/composer.json index d065115..cac2028 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ }, "require": { "php": "^7.1", - "oneplace/oneplace-core": "^1.0.0" }, "autoload": { "psr-4": { diff --git a/docs/book/index.md b/docs/book/index.md new file mode 100644 index 0000000..7415ad2 --- /dev/null +++ b/docs/book/index.md @@ -0,0 +1,23 @@ +# oneplace-user + +onePlace User Module. Manage Users, Permissions and User Settings + +## Installation + +onePlace User Module is required by onePlace X Core and so its +automatically installed once you install onePlace Core using composer. + +So if you already have onePlace Core, theres no need to do anything +for installation. + +if you want to use onePlace User Module for your own project +you can add it with composer + +```bash +$ composer require oneplace/oneplace-user +``` + +## Support + * Issues: [github.com/oneplc/plc_x_user/issues](https://github.com/oneplc/plc_x_user/issues) + * Source: [github.com/oneplc/plc_x_user/](https://github.com/oneplc/plc_x_user/) + * Telegram Group: [t.me/oneplc](https://t.me/oneplc) \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 8052f34..a9bbd38 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,14 +2,9 @@ docs_dir: docs/book site_dir: docs/html nav: - Home: index.md - - Introduction: intro.md - - 'Quick Start': quick-start.md - - Reference: - - 'Dynamic Fields': dynamic-fields.md - - Examples: examples.md -site_name: oneplace-skeleton -site_description: "onePlace Application User Module" +site_name: oneplace-user +site_description: "onePlace User Module" repo_url: 'https://github.com/OnePlc/PLC_X_User' -theme: readthedocs +theme: bootstrap4 extra: project: onePlc \ No newline at end of file diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 170c25e..229c7f1 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -559,6 +559,6 @@ public function setthemeAction() { $oThemeTbl->update(['theme'=>$sTheme],['User_ID'=>CoreController::$oSession->oUser->getID()]); $this->flashMessenger()->addSuccessMessage('Please login again to see your new theme'); - return $this->redirect()->toRoute('home'); + return $this->redirect()->toRoute('logout'); } } diff --git a/view/layout/login.phtml b/view/layout/login.phtml index fd5fed8..0215033 100644 --- a/view/layout/login.phtml +++ b/view/layout/login.phtml @@ -2,7 +2,7 @@ - headTitle('Laminas MVC Skeleton')->setSeparator(' - ')->setAutoEscape(false) ?> + headTitle('onePlace - Login')->setSeparator(' - ')->setAutoEscape(false) ?> headMeta() ->appendName('viewport', 'width=device-width, initial-scale=1.0')