N
N
Nikita Kamenev2015-05-04 13:52:15
Flask
Nikita Kamenev, 2015-05-04 13:52:15

How to override the registration form in Flask-Security?

Hello!

The task is to override the standard registration form in Flask-Security, namely, to remove all label attributes from there.
In the documentation, in the form customization section, there is such an item, but in the example, fields are added to the form, and I need to change the standard one.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Shikanov, 2015-05-04
@NickStone

When creating a Security instance, simply pass the desired form through the argument register_form:
But you will probably still need to use the mixins provided by Flask-Security .

F
FRiMN, 2016-02-15
@FRiMN

flask-security.readthedocs.org/en/latest/configura...
Somewhere in the depths of the module is the /templates directory -- copy it into your application and edit the templates however you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question