Revert users changes that were made at Wekan v4.16.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-06-18 02:00:51 +03:00
parent 0ff1e63a5d
commit 5eb3784527
11 changed files with 26 additions and 26 deletions

View file

@ -124,7 +124,7 @@ Meteor.methods({
ATResendVerificationEmail: function (email) {
check(email, String);
var user = Users.findOne({ "emails.address": email });
var user = Meteor.users.findOne({ "emails.address": email });
// Send the standard error back to the client if no user exist with this e-mail
if (!user) {