Count accounts rather than devices that are stories-capable
This commit is contained in:
parent
5868d9969a
commit
91626dea45
|
@ -89,6 +89,8 @@ public class BaseAccountAuthenticator {
|
|||
return Optional.empty();
|
||||
}
|
||||
|
||||
hasStoryCapability = account.map(Account::isStoriesSupported).orElse(false);
|
||||
|
||||
Optional<Device> device = account.get().getDevice(deviceId);
|
||||
|
||||
if (device.isEmpty()) {
|
||||
|
@ -108,11 +110,6 @@ public class BaseAccountAuthenticator {
|
|||
}
|
||||
}
|
||||
|
||||
Device.DeviceCapabilities capabilities = device.get().getCapabilities();
|
||||
if (capabilities != null) {
|
||||
hasStoryCapability = capabilities.isStories();
|
||||
}
|
||||
|
||||
AuthenticationCredentials deviceAuthenticationCredentials = device.get().getAuthenticationCredentials();
|
||||
if (deviceAuthenticationCredentials.verify(basicCredentials.getPassword())) {
|
||||
succeeded = true;
|
||||
|
|
Loading…
Reference in New Issue