Code Monkey home page Code Monkey logo

Comments (2)

mattupstate avatar mattupstate commented on May 13, 2024

Login errors and registration errors are a bit different from each other. Login errors can easily be displayed with a simple flash message because you can usually inform the user of one error, such as an invalid password. Where as registration is usually a bit more complicated and errors should be displayed as part of the form UI because there could potentially be more than one error, such as an invalid email address, password confirmation not matching up, and any other fields you may want to add to your form.

This feature is still in development and I'm trying to decide how to make this feature easiest to implement but also make it flexible. At the moment, if you want to show your registration errors, you'll need to turn off the registration endpoint by setting registerable=False in the Security constructor or init_app call. You'll then want to setup the POST endpoint yourself. Use the register view method as reference if need be.

from flask-security.

ondrajz avatar ondrajz commented on May 13, 2024

Okay, thanks for quick reply! I will make the workaround you suggested until it is finished.

from flask-security.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.