Commit 72f59958 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Fix CreateAccountHandler

parent 898b77aa
Pipeline #20593 passed with stages
in 6 minutes and 24 seconds
......@@ -137,7 +137,7 @@ class CreateAccountHandler(APIHandler):
params_class = CreateAccountHandlerParams
def _handle_internal(self, params):
if self.cluster.secret != params.secret:
if self.ctx.config.cluster.secret != params.secret:
logger.warning('Invalid cluster secret')
raise errors.NotAllowedError()
account_id, account_api_key = insert_account(self.ctx.db.get_app_db(), {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment