mirror of
https://github.com/signalapp/Signal-Server
synced 2026-05-02 02:10:55 +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())) {
|
if (device.get().getAuthenticationCredentials().verify(basicCredentials.getPassword())) {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
account.get().setAuthenticatedDevice(device.get());
|
final Account authenticatedAccount = updateLastSeen(account.get(), device.get());
|
||||||
return Optional.of(updateLastSeen(account.get(), device.get()));
|
authenticatedAccount.setAuthenticatedDevice(device.get());
|
||||||
|
return Optional.of(authenticatedAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
|||||||
Reference in New Issue
Block a user