Set users as on their server immediately upon login
This commit is contained in:
parent
fbc9438e91
commit
91432b3d71
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user