From 7ffd0bab3c6f397936f8ef9f6829cdf33b850efa Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 19 Jan 2020 16:10:55 +0200 Subject: Implemented new ms user creation + PASSWORD_CHANGE_REQUIRED. Improved ms login design + password change. Improved ms main menu and current user design. --- .../Web/Tango.MachineService/Controllers/MachineStudioController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs') diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs index 0fd116361..7d105f0bd 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs @@ -306,7 +306,7 @@ namespace Tango.MachineService.Controllers authResult = _ad_manager.ValidateUserCredentials(request.Email, request.Password); isPasswordOK = true; } - catch {} + catch { } //Login via Active Directory if (request.Method == LoginMethod.ActiveDirectory) @@ -450,6 +450,7 @@ namespace Tango.MachineService.Controllers }, DateTime.UtcNow.AddDays(1)).AccessToken, VersionChangeRequired = versionChangeRequired, RequiredVersion = requiredVersion, + PasswordChangeRequired = request.Method == LoginMethod.StandardUser && user.PasswordChangeRequired }; } -- cgit v1.3.1