lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 292 forks source link

USER_AFTER_REGISTER_ENDPOINT ignored #272

Open GitMorin opened 5 years ago

GitMorin commented 5 years ago

Setting USER_AFTER_REGISTER_ENDPOINT appear to be ignored.

This is my config. Expecting to be routed back to the registration form after register a new user, auto_login is set to false. Instead i am routed to GET /myapp/login?next=/ (ignoring my user_login_url and are using next to /, root, this is to 404) If I am using auto login I am being sent to root again ignoring after_login_url I am using my own end points, maybe it has something to do with it?

Do i need to manipulte the template myself to get around it?

app.config['USER_ENABLE_REGISTER'] = True app.config['USER_AUTO_LOGIN_AFTER_REGISTER'] = False app.config['USER_LOGIN_URL'] = '/{}/login'.format(appname) app.config['USER_LOGOUT_URL'] = '/{}/logout'.format(appname) app.config['USER_REGISTER_URL'] = '/{}/register'.format(appname) app.config['USER_AFTER_LOGOUT_ENDPOINT'] = 'user.login' app.config['USER_AFTER_LOGIN_ENDPOINT'] = 'map_main' app.config['USER_AFTER_REGISTER_ENDPOINT'] = 'user.register'

321k commented 4 years ago

I've got the same issue.