Allow updating OAuth accounts

This commit is contained in:
M66B
2020-11-25 19:05:32 +01:00
parent 687795e3d4
commit ad439fd392
6 changed files with 146 additions and 172 deletions

View File

@@ -92,6 +92,11 @@ public interface DaoAccount {
@Query("SELECT * FROM account WHERE name = :name")
EntityAccount getAccount(String name);
@Query("SELECT * FROM account" +
" WHERE user = :user" +
" AND auth_type = :auth_type")
EntityAccount getAccount(String user, int auth_type);
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();