a little cleanup
This commit is contained in:
parent
fd89dd25ca
commit
37fda7abc8
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -2,8 +2,6 @@ module test.calendarwebapp.testpasshash;
|
|||
|
||||
import calendarwebapp.passhash;
|
||||
|
||||
import poodinis;
|
||||
|
||||
import unit_threaded;
|
||||
|
||||
@("StubPasswordHasher")
|
||||
|
|
Loading…
Reference in a new issue