From e6e7cffb685dace318378bfb8fe943c566223a2c Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 26 Nov 2013 12:34:10 +0100 Subject: [PATCH] Save generated password in database --- wmud/maintenance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wmud/maintenance.c b/wmud/maintenance.c index efb596e..4f26a3f 100644 --- a/wmud/maintenance.c +++ b/wmud/maintenance.c @@ -32,6 +32,7 @@ #include "players.h" #include "configuration.h" #include "wmudplayer.h" +#include "db.h" /** * SECTION:maintenance-thread @@ -69,6 +70,7 @@ wmud_maintenance_check_players(WmudPlayer *player, gpointer user_data) wmud_player_set_cpassword(player, cpw); /* TODO: Send e-mail about the new password. Upon completion, set it in * the database */ + wmud_db_update_player_password(player, cpw, NULL); g_free(pw); g_free(salt);