-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CSRF Security measures on login forms #40
Conversation
just added the csrf middleware
Still in progress of testing don't commit |
Changed Views to accept CSRF token
CSRF is used to validate that the the page that was requested is the page that the information was sent back from. This is used so a site cant make a post request to a website without requesting a page first. When a ajax request is made from an external site it won't automatically do the operation (this may be change username, password, phone number, etc.). This happens because If the user is already signed in then the cookies are also sent in the request. This is a great site describing CSRF if you want to read it |
I commented it out and forgot to remove it |
@GeneralZero please let me know when it's ok to merge. |
It's good to go. |
@dstroot Thanks for catching it. This should be fixed now. |
Thanks for that |
just added the csrf middleware
as I requested in #39