diff options
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index e9647922c..6cfd84d41 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -228,6 +228,13 @@ public class DataManager { .setObject(user) .executeUpdate()); } + + public void updateUser(User user) throws SQLException { + QueryBuilder.create(dataSource, + "UPDATE user SET name = :name, email = :email, admin = :admin WHERE id = :id;") + .setObject(user) + .executeUpdate(); + } public Collection<Permission> getPermissions() throws SQLException { return QueryBuilder.create(dataSource, |