]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/PasswordHash.java
add: more strict ticket handling. User history page
[gigi.git] / src / org / cacert / gigi / util / PasswordHash.java
index 04e686189339b1aa936d73f60dbf2fda44a2ffd4..4de92440dff10febe39a14ac31595c5e9e4446aa 100644 (file)
@@ -24,6 +24,9 @@ public class PasswordHash {
      *         </ul>
      */
     public static String verifyHash(String password, String hash) {
+        if (password == null || password.isEmpty()) {
+            return null;
+        }
         if (hash.contains("$")) {
             if (SCryptUtil.check(password, hash)) {
                 return hash;