Skip to content

Commit 56faddc

Browse files
committed
PB-9310 Fix initialize the AvatarsTable to load the config
1 parent cfcbd39 commit 56faddc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "passbolt/passbolt-selenium-api",
33
"description": "Passbolt selenium testing helper endpoints",
44
"type": "cakephp-plugin",
5-
"version": "3.1.1",
5+
"version": "3.1.2",
66
"keywords": [
77
"password",
88
"passbolt",

src/Controller/EmailController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public function beforeFilter(EventInterface $event)
5151
*/
5252
public function showLastEmail($username)
5353
{
54+
// Initiate table to load avatar size configuration
55+
TableRegistry::getTableLocator()->get('Avatars');
56+
5457
// If username is not an email, throw an error
5558
if (!Validation::email($username)) {
5659
throw new HttpException(__('Username not correct'));

0 commit comments

Comments
 (0)