Open ChrisHallwright opened 6 years ago
You on version 0.6? I'm on vr 1.0 and can't find config parameters. I think it's been removed in vr 1.0
21: In v0.6, Flask-User was customized by adding parameters to the UserManager()
22 instantiation. For example::
.
56: In v1.0, almost all UserManager
initiation parameters have been obsolted and
57 now only accepts the following:
58
59: - Required parameters app
, db
and UserClass
.
60: - Optional keyword parameters: UserEmailClass
and UserInvitationClass
.
61
62 .. seealso:: :ref:UserManagerClass
In v1.0, it's in the mongodb_app.py, has # Flask-User settings, and you change in there: USER_APP_NAME = "YourAppNameHere" # Shown in and email templates and page footers
The copyright part, I just go to flask_user_layout.html, find 2014 MyCorp
Issue might be partially resolved by: https://github.com/lingthio/Flask-User/pull/280 However, I've tried to get a blank footer by setting:
USER_APP_NAME = ''
USER_APP_VERSION = ''
USER_CORPORATION_NAME = ''
USER_COPYRIGHT_YEAR = ''
which leaves me with a ©
in the footer since ©
is still hardcoded.
One not very elegant workaround is to use the USER_*_TEMPLATE
configuration settings of Flask-User and to override each template individually in the Flask application.
Flask-user for me is a great extension - it does everything I want and more. I do have one small request: I cannot extend flask_user_layout.html template (v1.0.1.4) without the v1.0 for USER_APP_NAME and "© 2014 MyCorp" still appearing in the footer on native flask-user pages like sign-in, user profile etc.
I'd prefer to extend your standard layout template as-is rather than clone and hack it so I can take new versions without re-cloning the layout each time.
So any chance of adding config parameters for these footer fields? e.g. USER_APP_VERSION and USER_COPYRIGHT_NOTICE Best regards,