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 294 forks source link

Question: Differences between Flask-User and Flask-Security? #5

Open limoneneacid opened 10 years ago

limoneneacid commented 10 years ago

What are the differences between Flask-User and Flask-Security?

lingthio commented 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

lingthio commented 10 years ago

@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!

fnscoder commented 7 years ago

The link with answer was updated for http://flask-user.readthedocs.io/en/v0.6/faq.html

lingthio commented 6 years ago

Thanks @fnscoder !

northtree commented 6 years ago

One more reason, Flask-User is an official approved extension, but Flask-Security is not.

http://flask.pocoo.org/extensions/

jonalxh commented 6 years ago

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.

SergeyNosko commented 6 years ago

@northtree Please double check your statement Flask-Security is present at link you mentioned.

northtree commented 6 years ago

@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.

nedclimaterisk commented 5 years ago

Maybe a slightly different question, but related: What does flask-user do that flask-login doesn't, and can they interoperate?

and-semakin commented 4 years ago

New link: https://flask-user.readthedocs.io/en/latest/faq.html

lingthio commented 4 years ago

@nedclimaterisk : I've added a section on Flask-User and Flask-Login in the FAQ. See link in previous entry.

lingthio commented 4 years ago

@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.