Skip to content

Commit 8ad2164

Browse files
committed
🌐 fixed wrong message on invalid user login attempt, thanks @samzzi
error.user.notFound => error.access.login closes #3
1 parent e437ba2 commit 8ad2164

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby-kart",
33
"type": "kirby-plugin",
4-
"version": "5.2.0",
4+
"version": "5.2.1",
55
"description": "Streamlined E-Commerce Shopping Cart Solution",
66
"license": "proprietary",
77
"authors": [

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266

267267
$user = kirby()->user(A::get($data, 'email'));
268268
if (! $user) {
269-
kart()->message(t('error.user.notFound'));
269+
kart()->message(t('error.access.login'));
270270
}
271271
if ($user && $user->isCustomer()) {
272272
$code = MagicLinkChallenge::create($user, [
@@ -330,7 +330,7 @@
330330
}
331331

332332
if (! $user) {
333-
kart()->message(t('error.user.notFound'));
333+
kart()->message(t('error.access.login'));
334334
}
335335

336336
if ($user && $user->isCustomer() && MagicLinkChallenge::verify($user, $code)) {

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php return array(
22
'root' => array(
33
'name' => 'bnomei/kirby-kart',
4-
'pretty_version' => '5.2.0',
5-
'version' => '5.2.0.0',
4+
'pretty_version' => '5.2.1',
5+
'version' => '5.2.1.0',
66
'reference' => null,
77
'type' => 'kirby-plugin',
88
'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
1111
),
1212
'versions' => array(
1313
'bnomei/kirby-kart' => array(
14-
'pretty_version' => '5.2.0',
15-
'version' => '5.2.0.0',
14+
'pretty_version' => '5.2.1',
15+
'version' => '5.2.1.0',
1616
'reference' => null,
1717
'type' => 'kirby-plugin',
1818
'install_path' => __DIR__ . '/../../',

0 commit comments

Comments
 (0)