mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
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
This commit is contained in:
@@ -61,6 +61,54 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangeEmptyPassword
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangeEmptyPassword);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangeEmptyPasswordRetry
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangeEmptyPasswordRetry);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangeDNMReqs
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangeDNMReqs);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangeDNMReqsRetry
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangeDNMReqsRetry);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangePWCannotBeUsed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangePWCannotBeUsed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PasswordChangePWCannotBeUsedRetry
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.PasswordChangePWCannotBeUsedRetry);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionParamsValidateNullOwnerUri
|
||||
{
|
||||
get
|
||||
@@ -10082,6 +10130,24 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string ConnectionServiceConnectionCanceled = "ConnectionServiceConnectionCanceled";
|
||||
|
||||
|
||||
public const string PasswordChangeEmptyPassword = "PasswordChangeEmptyPassword";
|
||||
|
||||
|
||||
public const string PasswordChangeEmptyPasswordRetry = "PasswordChangeEmptyPasswordRetry";
|
||||
|
||||
|
||||
public const string PasswordChangeDNMReqs = "PasswordChangeDNMReqs";
|
||||
|
||||
|
||||
public const string PasswordChangeDNMReqsRetry = "PasswordChangeDNMReqsRetry";
|
||||
|
||||
|
||||
public const string PasswordChangePWCannotBeUsed = "PasswordChangePWCannotBeUsed";
|
||||
|
||||
|
||||
public const string PasswordChangePWCannotBeUsedRetry = "PasswordChangePWCannotBeUsedRetry";
|
||||
|
||||
|
||||
public const string ConnectionParamsValidateNullOwnerUri = "ConnectionParamsValidateNullOwnerUri";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user