Open limoneneacid opened 10 years ago
Thank you for considering Flask-User and for asking this question. I've answered it here: http://flask-user.readthedocs.io/en/v0.6/faq.html
@rollovercable : Thank you for closing this issue, but if you don't mind, I'd like to keep helpful questions in the 'open' view. Thanks for asking a helpful question!
The link with answer was updated for http://flask-user.readthedocs.io/en/v0.6/faq.html
Thanks @fnscoder !
One more reason, Flask-User is an official approved extension, but Flask-Security is not.
Flask-Security has something interesesting, and it is that if I create an user directly in DB with no hashed password, and then I try to log in, automatically hashes it. Flask-User has something like that?
How do I could create an user from CRUD (not register form) and hash his password?
Thanks a lot.
@northtree Please double check your statement Flask-Security is present at link you mentioned.
@SergeyNosko Please read again. I mean approved. There is one line below Flask-User. "This is an approved extension. " and one star on the left. However, Flask-Security is not.
Maybe a slightly different question, but related: What does flask-user do that flask-login doesn't, and can they interoperate?
@nedclimaterisk : I've added a section on Flask-User and Flask-Login in the FAQ. See link in previous entry.
@jonalxh : Developers can create User records and hash user passwords with Flask-User.
Look at https://github.com/lingthio/Flask-User/blob/master/flask_user/user_manager__views.py#L461 as an example. Line 461 creates a User record. Line 462 populates its fields (from a form here, but you can populate it programmatically). Line 468 hashes a password. Lines 479-480 saves the User record.
What are the differences between Flask-User and Flask-Security?