some small fixups
This commit is contained in:
parent
66bbcd113a
commit
84206e2881
2 changed files with 1 additions and 3 deletions
|
@ -37,8 +37,6 @@ public:
|
|||
if (result != Bson(null))
|
||||
{
|
||||
auto authInfo = result.deserializeBson!AuthInfo;
|
||||
import vibe.core.log : logInfo;
|
||||
logInfo(passwordHasher.generateHash(password));
|
||||
if (passwordHasher.checkHash(password, authInfo.passwordHash))
|
||||
{
|
||||
return authInfo.nullable;
|
||||
|
|
|
@ -20,7 +20,7 @@ public:
|
|||
override void registerDependencies(shared(DependencyContainer) container)
|
||||
{
|
||||
auto mongoClient = connectMongoDB("localhost");
|
||||
auto pool = new MySQLPool("localhost", "root", "Ilemm3Kzj", "CalendarWebapp");
|
||||
auto pool = new MySQLPool("localhost", "username", "password", "CalendarWebapp");
|
||||
container.register!MySQLPool.existingInstance(pool);
|
||||
container.register!MongoClient.existingInstance(mongoClient);
|
||||
container.register!(EventStore, MySQLEventStore);
|
||||
|
|
Loading…
Reference in a new issue