diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-05 17:24:14 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-05 17:24:14 +0300 |
| commit | 2e752ce186fc34f5530841bdac7537ee775ed3f6 (patch) | |
| tree | ab4fad972fac8f8fc530b233f567ef33453f36a9 /Software/Visual_Studio/FSE/Tango.FSE.BL | |
| parent | 5ebb5e6092a74190654bf6d9e5d7d46f9db775a6 (diff) | |
| download | Tango-2e752ce186fc34f5530841bdac7537ee775ed3f6.tar.gz Tango-2e752ce186fc34f5530841bdac7537ee775ed3f6.zip | |
Job uploader from FSE/RSM.
User password reset from FSE.
Connectivity check method set to Windows by default.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.BL')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.BL/Services/OrganizationsService.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/OrganizationsService.cs b/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/OrganizationsService.cs index 7337ac9a5..2b86caddd 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/OrganizationsService.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/OrganizationsService.cs @@ -85,7 +85,7 @@ namespace Tango.FSE.BL.Services .BuildExecuteAsync(); } - public Task<User> UpdateUser(User user) + public Task<User> UpdateUser(User user, bool resetPassword = false, String temporaryResetPassword = null) { return Task.Factory.StartNew(() => { @@ -121,6 +121,12 @@ namespace Tango.FSE.BL.Services } } + if (resetPassword) + { + user.Password = User.GetPasswordHash(temporaryResetPassword); + user.PasswordChangeRequired = true; + } + db.SaveChanges(); } |
