From b7ab42949e8b28f7425f308c7c06f069025257d1 Mon Sep 17 00:00:00 2001 From: lukeIam Date: Sun, 1 Dec 2013 12:37:54 +0100 Subject: [PATCH] Webserver: -fix: Profile changes are reset on server restart --- Vocaluxe/Base/Server/CVocaluxeServer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Base/Server/CVocaluxeServer.cs b/Vocaluxe/Base/Server/CVocaluxeServer.cs index 380fe414..820318b1 100644 --- a/Vocaluxe/Base/Server/CVocaluxeServer.cs +++ b/Vocaluxe/Base/Server/CVocaluxeServer.cs @@ -256,6 +256,8 @@ namespace Vocaluxe.Base.Server if (existingProfile != null) { CProfiles.EditProfile(newProfile); + CProfiles.Update(); + CProfiles.SaveProfiles(); } else { @@ -607,7 +609,6 @@ namespace Vocaluxe.Base.Server #region user management - private static bool _ValidatePassword(int profileId, string password) { CProfile profile = CProfiles.GetProfile(profileId); @@ -688,6 +689,8 @@ namespace Vocaluxe.Base.Server profile.UserRoles = userRole; CProfiles.EditProfile(profile); + CProfiles.Update(); + CProfiles.SaveProfiles(); } private static int _GetUserIdFromUsername(string username)