Files
sqltoolsservice/src/Microsoft.SqlTools.ServiceLayer/Connection/Contracts/PasswordChangeResponse.cs
Alex Ma 7eee5180a2 Add change password function and handling (#1771)
* added ChangePassword to connectionService

* added changepasswordparams

* added more code

* added more changes to connectionservice

* added more changes

* added small test

* added changepasswordrequest

* added different ServerConnection constructor

* consolidated changepassword

* added exception catch

* added passwordChangeFail params

* added changePassword to it's own function

* simplified changePassword

* made fixes to test

* added new test

* added one additional connection test

* added response callback

* removed unnecessary SendError

* added localized empty password error

* added updated error messages

* added small fix to check

* added changes based on feedback

* added minor change

* fix tests

* renamed messages to errorDetails

* simplified error message

* small change to connectionservice message

* error message change

* added environment newline

* added error retry messages to STS

* added regex

* added newline handling
2022-12-07 14:24:26 -08:00

24 lines
714 B
C#

//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
{
/// <summary>
/// Parameters to be sent back after a password change attempt.
/// </summary>
public class PasswordChangeResponse
{
/// <summary>
/// Status indicating if password change was successful or not.
/// </summary>
public bool Result { get; set; }
/// <summary>
/// Error message for the password change, if an error occured.
/// </summary>
public string? ErrorMessage { get; set; }
}
}