mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 09:28:03 +01:00
Set authenticated device after updating last seen
This commit is contained in:
committed by
Jon Chambers
parent
01ef855157
commit
bd03d910fe
@@ -82,8 +82,9 @@ public class BaseAccountAuthenticator {
|
||||
|
||||
if (device.get().getAuthenticationCredentials().verify(basicCredentials.getPassword())) {
|
||||
succeeded = true;
|
||||
account.get().setAuthenticatedDevice(device.get());
|
||||
return Optional.of(updateLastSeen(account.get(), device.get()));
|
||||
final Account authenticatedAccount = updateLastSeen(account.get(), device.get());
|
||||
authenticatedAccount.setAuthenticatedDevice(device.get());
|
||||
return Optional.of(authenticatedAccount);
|
||||
}
|
||||
|
||||
return Optional.empty();
|
||||
|
||||
Reference in New Issue
Block a user