Not getting signal from Flask-Security
Asked Answered
V

1

1

I want to receive the user_registered signal from Flask-Security and have to set up like so:

from flask.ext.security.signals import user_registered

@user_registered.connect_via(app)
def user_registered_sighandler(sender, **extra):
    sender.logger.debug("logger-user_registered_sighandler:", extra)
    print "print-user_registered_sighandler:", extra

But my signal handler is not being called when a new user is registered. I've set up a Flask (not Flask-Security) signal similar to above that does work. Can anyone help with this?

I'm using: Flask==0.9, Flask-Security==1.5.4, blinker==1.2

Vigilantism answered 25/2, 2013 at 5:45 Comment(0)
V
1

This was a bug fixed in v1.6.1 of Flask-Security

Vigilantism answered 30/8, 2013 at 4:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.