Set users as on their server immediately upon login

This commit is contained in:
Colin McDonald 2016-07-14 17:15:54 -04:00
parent fbc9438e91
commit 91432b3d71

View File

@ -78,6 +78,9 @@ public final class POSTUsersIdLogin implements Handler<RoutingContext> {
SyncUtils.<Void>runBlocking(v -> finalUser.checkNameCollisions(v)); SyncUtils.<Void>runBlocking(v -> finalUser.checkNameCollisions(v));
} }
finalUser.seenOnServer(actorServer);
SyncUtils.<Void>runBlocking(v -> finalUser.save(v));
user.getLoginInfo(actorServer, userIp, (loginInfo, error) -> { user.getLoginInfo(actorServer, userIp, (loginInfo, error) -> {
if (error != null) { if (error != null) {
ErrorUtils.respondInternalError(ctx, error); ErrorUtils.respondInternalError(ctx, error);