Skip to content

Commit b4557cd

Browse files
committed
Fixing bug in invitation email check.
1 parent 97f7564 commit b4557cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/V1Module/presenters/RegistrationPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function actionCreateInvitation()
272272
// check if the email is free
273273
$email = trim($format->email);
274274
// username is name of column which holds login identifier represented by email
275-
if ($this->logins->getByUsername($email) !== null) {
275+
if ($this->users->getByEmail($email) !== null) {
276276
throw new BadRequestException("This email address is already taken.");
277277
}
278278

0 commit comments

Comments
 (0)