mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 17:23:35 -05:00
Added reset password dialog upon SQL Server expired password error (#21295)
* Added initial password connection dialog box * made small changes * more preliminary work * more WIP changes * more cleanup done * added dialog instantiation * added placeholder dialog window * added changePasswordController * made some changes to changePasswordController * some changes made * added more changes * more changes made to dialogue * added password confirm box * added WIP change password function * small changes made to API * small changes for test * added uri * added valid password * added TODO comments * added small change to connectionManagementService * added connectionManagementService password change * added comment on what to do next * made some simplification of change password * added response callback * added fixes to protocol * added throw error for passwordChangeResult * WIP added call to self after password change * WIP changes to implementing new password change dialog * added changes to passwordChangeDialog * added launchChangePasswordDialog * remove erroneous css * added working dialog * removed old password change dialog * fixed space * added checkbox option to passwordChangeDialog * added test signatures * added error handling * added some changes * added changes to HTML for passwordChangeDialog * added CSS to passwordChangeDialog * added display none for matching passwords * added documentation changes * small cleanup * added working error catch and retry * added await * added recovery instructions * Added ok button hide for button click. * added loading spinner * fixed for semicolon * added updated message * Added message change * added minor fixes * added small fixes * made more changes * renamed messages to errorDetails * added styling to passwordChangeDialog * simplified error message * changed comment * modified azdata to be consistent * small changes * change to azdata for consistency * added clarification for provider * removed additional instructions * Added new dialog title * addressed feedback * added comments * added changes
This commit is contained in:
19
src/sql/azdata.proposed.d.ts
vendored
19
src/sql/azdata.proposed.d.ts
vendored
@@ -403,6 +403,25 @@ declare module 'azdata' {
|
||||
title: string;
|
||||
}
|
||||
|
||||
export interface ConnectionProvider extends DataProvider {
|
||||
/**
|
||||
* Changes a user's password for the scenario of password expiration during SQL Authentication. (for Azure Data Studio use only)
|
||||
*/
|
||||
changePassword?(connectionUri: string, connectionInfo: ConnectionInfo, newPassword: string): Thenable<PasswordChangeResult>;
|
||||
}
|
||||
|
||||
// Password Change Request ----------------------------------------------------------------------
|
||||
export interface PasswordChangeResult {
|
||||
/**
|
||||
* Whether the password change was successful
|
||||
*/
|
||||
result: boolean;
|
||||
/**
|
||||
* Error message if the password change was unsuccessful
|
||||
*/
|
||||
errorMessage?: string;
|
||||
}
|
||||
|
||||
export interface IConnectionProfile extends ConnectionInfo {
|
||||
/**
|
||||
* The type of authentication to use when connecting
|
||||
|
||||
Reference in New Issue
Block a user