Skip to content

Commit

Permalink
Manual reconfig route bug #4433
Browse files Browse the repository at this point in the history
  • Loading branch information
SidSethi committed Dec 12, 2022
1 parent 7ad8e86 commit e41a42e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ const manuallyUpdateReplicaSetController = async (req, _res) => {
const serviceRegistry = req.app.get('serviceRegistry')
const { nodeConfig: config } = serviceRegistry

const overridePassword = req.body.overridePassword
const overridePassword = req.query.overridePassword
const override = verifySPOverride(overridePassword)

if (!override || !config.get('devMode')) {
// If override not provided AND devMode not enabled, error
if (!override && !config.get('devMode')) {
return errorResponseBadRequest('This route is disabled')
}

Expand Down

0 comments on commit e41a42e

Please sign in to comment.