Fix issue with User#findByEmailToken caused by field renaming
This commit is contained in:
parent
5805506372
commit
3ab317da1f
@ -137,7 +137,7 @@ public final class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void findByEmailToken(String emailToken, SingleResultCallback<User> callback) {
|
public static void findByEmailToken(String emailToken, SingleResultCallback<User> callback) {
|
||||||
usersCollection.find(new Document("emailToken", emailToken)).first(SyncUtils.vertxWrap(callback));
|
usersCollection.find(new Document("pendingEmailToken", emailToken)).first(SyncUtils.vertxWrap(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void findByLastUsername(String lastUsername, SingleResultCallback<User> callback) {
|
public static void findByLastUsername(String lastUsername, SingleResultCallback<User> callback) {
|
||||||
|
Loading…
Reference in New Issue
Block a user