From 37fda7abc8aa14cb67ed343e49f461982f47c4d7 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Fri, 10 Nov 2017 18:31:47 +0100 Subject: [PATCH] a little cleanup --- source/calendarwebapp/passhash.d | 4 +--- test/calendarwebapp/testpasshash.d | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source/calendarwebapp/passhash.d b/source/calendarwebapp/passhash.d index c1b3e82..30c4829 100644 --- a/source/calendarwebapp/passhash.d +++ b/source/calendarwebapp/passhash.d @@ -1,7 +1,5 @@ module calendarwebapp.passhash; -import poodinis; - interface PasswordHasher { string generateHash(in string password) const @safe; @@ -23,7 +21,7 @@ class StubPasswordHasher : PasswordHasher class SHA256PasswordHasher : PasswordHasher { - import dauth; + import dauth : dupPassword, isSameHash, makeHash, parseHash; import std.digest.sha : SHA256; string generateHash(in string password) const @safe diff --git a/test/calendarwebapp/testpasshash.d b/test/calendarwebapp/testpasshash.d index 1bcea57..d292bb1 100644 --- a/test/calendarwebapp/testpasshash.d +++ b/test/calendarwebapp/testpasshash.d @@ -2,8 +2,6 @@ module test.calendarwebapp.testpasshash; import calendarwebapp.passhash; -import poodinis; - import unit_threaded; @("StubPasswordHasher")