From 62048ed5ec8054c9e0205f3308d0954926746866 Mon Sep 17 00:00:00 2001 From: Demian Date: Tue, 9 Jun 2015 19:45:22 -0300 Subject: Replaced tabs for spaces --- src/org/traccar/database/DataManager.java | 6 +++--- src/org/traccar/model/User.java | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 7ded88d15..fdab359f4 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -240,9 +240,9 @@ public class DataManager { .executeUpdate(); if(user.getPassword() != null) { - QueryBuilder.create(dataSource, properties.getProperty("database.updateUserPassword")) - .setObject(user) - .executeUpdate(); + QueryBuilder.create(dataSource, properties.getProperty("database.updateUserPassword")) + .setObject(user) + .executeUpdate(); } } diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java index 70a4498f5..9186e66c5 100644 --- a/src/org/traccar/model/User.java +++ b/src/org/traccar/model/User.java @@ -64,16 +64,16 @@ public class User implements Factory { public static byte[] sha256(String text) { - try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); + try { + MessageDigest md = MessageDigest.getInstance("SHA-256"); - md.update(text.getBytes("UTF-8")); - byte[] digest = md.digest(); - return digest; - } catch (NoSuchAlgorithmException e) { - throw new RuntimeException(e); - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - } + md.update(text.getBytes("UTF-8")); + byte[] digest = md.digest(); + return digest; + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); + } catch (UnsupportedEncodingException e) { + throw new RuntimeException(e); + } + } } -- cgit v1.2.3