diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-01-19 16:10:55 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-01-19 16:10:55 +0200 |
| commit | 7ffd0bab3c6f397936f8ef9f6829cdf33b850efa (patch) | |
| tree | c2fb5b6cef2d04fe529b284a734657749880abf9 /Software/Visual_Studio/Web | |
| parent | 09d432566f696f0eeb3fce97d2c870cfd1c91f89 (diff) | |
| download | Tango-7ffd0bab3c6f397936f8ef9f6829cdf33b850efa.tar.gz Tango-7ffd0bab3c6f397936f8ef9f6829cdf33b850efa.zip | |
Implemented new ms user creation + PASSWORD_CHANGE_REQUIRED.
Improved ms login design + password change.
Improved ms main menu and current user design.
Diffstat (limited to 'Software/Visual_Studio/Web')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 }; } |
