Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!23added queuename to account_create callback
...@@ -20,6 +20,7 @@ def gen_f(room): ...@@ -20,6 +20,7 @@ def gen_f(room):
def callback(channel, method, properties, body): def callback(channel, method, properties, body):
msg = json.loads(body) msg = json.loads(body)
username = msg['username'] username = msg['username']
queuename = msg['username']
if msg['success']: if msg['success']:
print(f'Account for {username} has been created.') print(f'Account for {username} has been created.')
...@@ -32,7 +33,7 @@ def gen_f(room): ...@@ -32,7 +33,7 @@ def gen_f(room):
socketio.emit('account error', errmsg, room= room) socketio.emit('account error', errmsg, room= room)
rc_util.rc_rmq.stop_consume() rc_util.rc_rmq.stop_consume()
rc_util.rc_rmq.delete_queue() rc_util.rc_rmq.delete_queue(queuename)
return callback return callback
def certify_gen_f(room): def certify_gen_f(room):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment