Commit dd82b66e authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Merge branch 'fix-create-account-callback' into 'master'

added queuename to account_create callback

See merge request rc/self-reg-form!23
parents 190f0142 edcf4dab
......@@ -20,6 +20,7 @@ def gen_f(room):
def callback(channel, method, properties, body):
msg = json.loads(body)
username = msg['username']
queuename = msg['username']
if msg['success']:
print(f'Account for {username} has been created.')
......@@ -32,7 +33,7 @@ def gen_f(room):
socketio.emit('account error', errmsg, room= room)
rc_util.rc_rmq.stop_consume()
rc_util.rc_rmq.delete_queue()
rc_util.rc_rmq.delete_queue(queuename)
return callback
def certify_gen_f(room):
......
Supports Markdown
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