Fixed switching/refreshing graph token

This commit is contained in:
M66B
2023-03-04 22:51:14 +01:00
parent c092e142d7
commit 48ec3e7620
3 changed files with 19 additions and 15 deletions

View File

@@ -119,7 +119,7 @@ public interface DaoIdentity {
" SET password = :password, auth_type = :new_auth_type, provider = :provider" +
" WHERE account = :account" +
" AND user = :user" +
" AND auth_type = :auth_type" +
" AND (auth_type = :auth_type OR auth_type = " + ServiceAuthenticator.AUTH_TYPE_GRAPH + ")" +
" AND NOT (password IS :password AND auth_type IS :new_auth_type AND provider = :provider)")
int setIdentityPassword(long account, String user, String password, int auth_type, int new_auth_type, String provider);