Add error codes for password change (reopened) (#1784)

* added error code handling

* Small cleanup

* added changes
This commit is contained in:
Alex Ma
2022-12-13 13:04:40 -08:00
committed by GitHub
parent cc94a1a4c6
commit 548229d547
5 changed files with 19 additions and 51 deletions

View File

@@ -77,14 +77,6 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string PasswordChangeDNMReqs
{
get
{
return Keys.GetString(Keys.PasswordChangeDNMReqs);
}
}
public static string PasswordChangeDNMReqsRetry
{
get
@@ -93,14 +85,6 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string PasswordChangePWCannotBeUsed
{
get
{
return Keys.GetString(Keys.PasswordChangePWCannotBeUsed);
}
}
public static string PasswordChangePWCannotBeUsedRetry
{
get
@@ -10136,15 +10120,9 @@ namespace Microsoft.SqlTools.ServiceLayer
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";

View File

@@ -176,18 +176,10 @@
<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>

View File

@@ -51,12 +51,8 @@ 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

View File

@@ -6515,21 +6515,11 @@ The Query Processor estimates that implementing the following index could improv
<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>