Skip to content

Commit

Permalink
when repo URL changing - clear all existing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
nsolov committed Dec 10, 2024
1 parent d662090 commit 7155282
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/%ZPM/PackageManager/Client/RemoteServerDefinition.cls
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ ClassMethod OnConfigure(pInstance As %ZPM.PackageManager.Client.ServerDefinition
$$$ThrowStatus($$$ERROR($$$GeneralError, "Operation cancelled."))
}
}

if ( $$$lcase(tUrl) '= $$$lcase(pInstance.URL) ) {
// when repo URL changing - clear all existing credentials
Set pInstance.Username = ""
Set pInstance.Password = ""
Set pInstance.Token = ""
}

If $Data(pModifiers("username"), tUsername) {
Set pInstance.Username = tUsername
Expand Down

0 comments on commit 7155282

Please sign in to comment.