Webserver: -fix: Profile changes are reset on server restart
This commit is contained in:
1 parent
0edc8f7faa
commit
b7ab42949e
1 file changed
+4
-1
@@ -256,6 +256,8 @@ namespace Vocaluxe.Base.Server
|
|||||||
if (existingProfile != null)
|
if (existingProfile != null)
|
||||||
{
|
{
|
||||||
CProfiles.EditProfile(newProfile);
|
CProfiles.EditProfile(newProfile);
|
||||||
|
CProfiles.Update();
|
||||||
|
CProfiles.SaveProfiles();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -607,7 +609,6 @@ namespace Vocaluxe.Base.Server
|
|||||||
|
|
||||||
#region user management
|
#region user management
|
||||||
|
|
||||||
|
|
||||||
private static bool _ValidatePassword(int profileId, string password)
|
private static bool _ValidatePassword(int profileId, string password)
|
||||||
{
|
{
|
||||||
CProfile profile = CProfiles.GetProfile(profileId);
|
CProfile profile = CProfiles.GetProfile(profileId);
|
||||||
@@ -688,6 +689,8 @@ namespace Vocaluxe.Base.Server
|
|||||||
profile.UserRoles = userRole;
|
profile.UserRoles = userRole;
|
||||||
|
|
||||||
CProfiles.EditProfile(profile);
|
CProfiles.EditProfile(profile);
|
||||||
|
CProfiles.Update();
|
||||||
|
CProfiles.SaveProfiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int _GetUserIdFromUsername(string username)
|
private static int _GetUserIdFromUsername(string username)
|
||||||
|
|||||||
Reference in new issue
Block a user