Fixed updating Graph token

This commit is contained in:
M66B
2023-03-05 07:47:35 +01:00
parent f0c058e7b4
commit a3a5cd5844
2 changed files with 3 additions and 3 deletions

View File

@@ -992,7 +992,7 @@ public class FragmentOAuth extends FragmentBase {
db.account().setAccountPassword(update.id, state[0], AUTH_TYPE_OAUTH, provider.id);
db.identity().setIdentityPassword(update.id, username,
state[state.length - 1],
update.auth_type,
null,
(state.length == 1 ? AUTH_TYPE_OAUTH : AUTH_TYPE_GRAPH),
provider.id);
}