From 91432b3d71100eb4f5caa5c1a2b4ca8e9aacd5ae Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Thu, 14 Jul 2016 17:15:54 -0400 Subject: [PATCH] Set users as on their server immediately upon login --- .../java/net/frozenorb/apiv3/route/users/POSTUsersIdLogin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdLogin.java b/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdLogin.java index a720afc..aa769f2 100644 --- a/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdLogin.java +++ b/src/main/java/net/frozenorb/apiv3/route/users/POSTUsersIdLogin.java @@ -78,6 +78,9 @@ public final class POSTUsersIdLogin implements Handler { SyncUtils.runBlocking(v -> finalUser.checkNameCollisions(v)); } + finalUser.seenOnServer(actorServer); + SyncUtils.runBlocking(v -> finalUser.save(v)); + user.getLoginInfo(actorServer, userIp, (loginInfo, error) -> { if (error != null) { ErrorUtils.respondInternalError(ctx, error);