some small fixups

This commit is contained in:
Johannes Loher 2017-11-20 22:36:16 +01:00
parent 66bbcd113a
commit 84206e2881
2 changed files with 1 additions and 3 deletions

View file

@ -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;

View file

@ -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);