diff --git a/src/ClientServer/Config/Constants.cs b/src/ClientServer/Config/Constants.cs index b948e48805f86da263deab604257d6e2305a797c..f21a32fbd398a7179564c6ee0156dc1f31e0ce96 100644 --- a/src/ClientServer/Config/Constants.cs +++ b/src/ClientServer/Config/Constants.cs @@ -13,7 +13,7 @@ namespace ClientServer.Helpers /// </summary> public static class Constants { - public static string VersionString = "2.20.0"; + public static string VersionString = "2.20.1"; /// <summary> /// this is only set once at program.cs!! diff --git a/src/ClientServer/Controllers/Core/Users/UsersController.cs b/src/ClientServer/Controllers/Core/Users/UsersController.cs index 0d10e41c72f188b1c34f9520e49f51d088d42408..b3b52bf5c60b1eea4d14a17151dd86171731e847 100644 --- a/src/ClientServer/Controllers/Core/Users/UsersController.cs +++ b/src/ClientServer/Controllers/Core/Users/UsersController.cs @@ -289,6 +289,8 @@ namespace ClientServer.Controllers.Core.Users //frontend users sha pre encryption... we need to use this too! user.Password = PasswordHelper.GetHashV1(PasswordHelper.HashLikeFrontend(randomPassword)); + //upgrade to newest hash version + user.AuthVersion = 1; try diff --git a/src/ClientServer/Helpers/PasswordHelper.cs b/src/ClientServer/Helpers/PasswordHelper.cs index 39a3f8fba5653d1d922934a5c347722c77c23b38..533c730d97d296e40a25775d8d3ef11151aa0d91 100644 --- a/src/ClientServer/Helpers/PasswordHelper.cs +++ b/src/ClientServer/Helpers/PasswordHelper.cs @@ -40,7 +40,7 @@ namespace ClientServer.Helpers /// returns the hash with the same hashing algorithm (SHA 512) as the frontend (e.g. to create a new user) /// </summary> /// <param name="pw"></param> - /// <returns></returns> + /// <returns>always the same length... (44 chars)</returns> public static string HashLikeFrontend(string pw) { string hash;