mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-22 17:24:07 -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";
|
||||
|
||||
|
||||
|
||||
@@ -168,6 +168,30 @@
|
||||
<value>Connection canceled</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangeEmptyPassword" xml:space="preserve">
|
||||
<value>New password cannot be empty</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangeEmptyPasswordRetry" xml:space="preserve">
|
||||
<value>Press OK to input a new password that is not empty.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangeDNMReqs" xml:space="preserve">
|
||||
<value>password does not meet operating system policy requirements</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangeDNMReqsRetry" xml:space="preserve">
|
||||
<value>Press OK to input a new password that meets operating system policy requirements.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangePWCannotBeUsed" xml:space="preserve">
|
||||
<value>password cannot be used at this time</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="PasswordChangePWCannotBeUsedRetry" xml:space="preserve">
|
||||
<value>Press OK to input a different password.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="ConnectionParamsValidateNullOwnerUri" xml:space="preserve">
|
||||
<value>OwnerUri cannot be null or empty</value>
|
||||
<comment></comment>
|
||||
|
||||
@@ -45,6 +45,20 @@ ConnectionServiceConnStringInvalidIntent(string intent) = Invalid value '{0}' fo
|
||||
|
||||
ConnectionServiceConnectionCanceled = Connection canceled
|
||||
|
||||
### Password Change
|
||||
|
||||
PasswordChangeEmptyPassword = New password cannot be empty
|
||||
|
||||
PasswordChangeEmptyPasswordRetry = Press OK to input a new password that is not empty.
|
||||
|
||||
PasswordChangeDNMReqs = password does not meet operating system policy requirements
|
||||
|
||||
PasswordChangeDNMReqsRetry = Press OK to input a new password that meets operating system policy requirements.
|
||||
|
||||
PasswordChangePWCannotBeUsed = password cannot be used at this time
|
||||
|
||||
PasswordChangePWCannotBeUsedRetry = Press OK to input a different password.
|
||||
|
||||
### Connection Params Validation Errors
|
||||
|
||||
ConnectionParamsValidateNullOwnerUri = OwnerUri cannot be null or empty
|
||||
|
||||
@@ -6505,6 +6505,36 @@ The Query Processor estimates that implementing the following index could improv
|
||||
<target state="new">Actual CPU Cost</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangeEmptyPassword">
|
||||
<source>New password cannot be empty</source>
|
||||
<target state="new">New password cannot be empty</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangeEmptyPasswordRetry">
|
||||
<source>Press OK to input a new password that is not empty.</source>
|
||||
<target state="new">Press OK to input a new password that is not empty.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangeDNMReqs">
|
||||
<source>password does not meet operating system policy requirements</source>
|
||||
<target state="new">password does not meet operating system policy requirements</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangeDNMReqsRetry">
|
||||
<source>Press OK to input a new password that meets operating system policy requirements.</source>
|
||||
<target state="new">Press OK to input a new password that meets operating system policy requirements.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangePWCannotBeUsed">
|
||||
<source>password cannot be used at this time</source>
|
||||
<target state="new">password cannot be used at this time</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="PasswordChangePWCannotBeUsedRetry">
|
||||
<source>Press OK to input a different password.</source>
|
||||
<target state="new">Press OK to input a different password.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user