a little cleanup

This commit is contained in:
Johannes Loher 2017-11-10 18:31:47 +01:00
parent fd89dd25ca
commit 37fda7abc8
2 changed files with 1 additions and 5 deletions

View file

@ -1,7 +1,5 @@
module calendarwebapp.passhash; module calendarwebapp.passhash;
import poodinis;
interface PasswordHasher interface PasswordHasher
{ {
string generateHash(in string password) const @safe; string generateHash(in string password) const @safe;
@ -23,7 +21,7 @@ class StubPasswordHasher : PasswordHasher
class SHA256PasswordHasher : PasswordHasher class SHA256PasswordHasher : PasswordHasher
{ {
import dauth; import dauth : dupPassword, isSameHash, makeHash, parseHash;
import std.digest.sha : SHA256; import std.digest.sha : SHA256;
string generateHash(in string password) const @safe string generateHash(in string password) const @safe

View file

@ -2,8 +2,6 @@ module test.calendarwebapp.testpasshash;
import calendarwebapp.passhash; import calendarwebapp.passhash;
import poodinis;
import unit_threaded; import unit_threaded;
@("StubPasswordHasher") @("StubPasswordHasher")