mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Added Master Password to increase the security of saved passwords. Fixes #4184
2. In server(web) mode, update all the saved server credentials when user password is changed. Fixes #3377
This commit is contained in:
committed by
Akshay Joshi
parent
6f0eafb223
commit
dfa892d2a2
@@ -230,6 +230,12 @@ class ExecuteQuery {
|
||||
this.sqlServerObject.handle_connection_lost(false, httpMessage);
|
||||
}
|
||||
|
||||
if(this.isCryptKeyMissing(httpMessage)) {
|
||||
this.sqlServerObject.saveState('execute', [this.explainPlan]);
|
||||
this.sqlServerObject.handle_cryptkey_missing();
|
||||
return;
|
||||
}
|
||||
|
||||
let msg = httpMessage.response.data.errormsg;
|
||||
this.sqlServerObject.update_msg_history(false, msg);
|
||||
}
|
||||
@@ -240,6 +246,12 @@ class ExecuteQuery {
|
||||
httpMessage.response.data.info === 'CONNECTION_LOST';
|
||||
}
|
||||
|
||||
isCryptKeyMissing(httpMessage) {
|
||||
return httpMessage.response.status === 503 &&
|
||||
httpMessage.response.data.info !== undefined &&
|
||||
httpMessage.response.data.info === 'CRYPTKEY_MISSING';
|
||||
}
|
||||
|
||||
removeGridViewMarker() {
|
||||
if (this.sqlServerObject.gridView.marker) {
|
||||
this.sqlServerObject.gridView.marker.clear();
|
||||
|
||||
Reference in New Issue
Block a user