summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-11-18 12:13:00 +0100
committermsquare <msquare@notrademark.de>2018-11-18 12:13:00 +0100
commit8236989be066c51c5f57884bcc42dbc387794651 (patch)
treea8cedd701543cb0ff9e4b9bbc8601a37ac23b339 /includes/pages
parent8db159580d56306b060f4279425a6462da109b5e (diff)
fix missing unique mail validation on user register
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/guest_login.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php
index a47f6013..5c3193f8 100644
--- a/includes/pages/guest_login.php
+++ b/includes/pages/guest_login.php
@@ -102,6 +102,10 @@ function guest_register()
$valid = false;
$msg .= error(__('E-mail address is not correct.'), true);
}
+ if (User::whereEmail($mail)->first()) {
+ $valid = false;
+ $msg .= error(__('E-mail address is already used by another user.'), true);
+ }
} else {
$valid = false;
$msg .= error(__('Please enter your e-mail.'), true);