We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f7564 commit b4557cdCopy full SHA for b4557cd
app/V1Module/presenters/RegistrationPresenter.php
@@ -272,7 +272,7 @@ public function actionCreateInvitation()
272
// check if the email is free
273
$email = trim($format->email);
274
// username is name of column which holds login identifier represented by email
275
- if ($this->logins->getByUsername($email) !== null) {
+ if ($this->users->getByEmail($email) !== null) {
276
throw new BadRequestException("This email address is already taken.");
277
}
278
0 commit comments