Skip to content

Commit

Permalink
Accounts 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 7, 2020
1 parent e1aa2a4 commit 1cfe832
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Global
.composer
composer.lock
package-lock.json
vendor/
node_modules/
dist/

# Flextype Site Specific
var/

# OS Generated
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
*.swp

# phpstorm
.idea/*
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.5.0"></a>
# [1.5.0](https://github.com/flextype-plugins/accounts) (2020-12-07)

### Features

* **core** update code base for new Flextype 0.9.12

<a name="1.4.0"></a>
# [1.4.0](https://github.com/flextype-plugins/accounts) (2020-08-25)

Expand Down
8 changes: 4 additions & 4 deletions app/Controllers/AccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Flextype\Component\Arrays\Arrays;
use Flextype\Component\Filesystem\Filesystem;
use Flextype\Component\Session\Session;

use PHPMailer\PHPMailer\PHPMailer;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
Expand All @@ -37,14 +37,14 @@ class AccountsController
/**
* Flextype Application
*/


/**
* __construct
*/
public function __construct()
{

}

/**
Expand Down Expand Up @@ -727,7 +727,7 @@ public function profileEditProcess(Request $request, Response $response, array $
*/
public function logoutProcess(Request $request, Response $response) : Response
{
Session::destroy();
flextype('session')->destroy();

// Run event onAccountsLogout
flextype('emitter')->emit('onAccountsLogout');
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
},
"require": {
"php": ">=7.3.0",
"ext-json": "*"
"ext-json": "*",
"flextype-components/arrays" : "3.0.1",
"flextype-components/filesystem": "2.0.8"
},
"config": {
"apcu-autoloader": true,
Expand Down
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Accounts
version: 1.4.0
version: 1.5.0
description: Accounts plugins for Flextype.
icon: fas fa-users
author:
Expand All @@ -12,7 +12,7 @@ keywords: accounts, login, authentication
license: MIT

dependencies:
flextype: 0.9.11
flextype: 0.9.12
site: '>=1.0.0'
twig: '>=1.0.0'
form: '>=1.0.0'
Expand Down

0 comments on commit 1cfe832

Please sign in to comment.