{"action":"created","issue":{"url":"https://api.github.com/repos/lepture/flask-wtf/issues/197","labels_url":"https://api.github.com/repos/lepture/flask-wtf/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/lepture/flask-wtf/issues/197/comments","events_url":"https://api.github.com/repos/lepture/flask-wtf/issues/197/events","html_url":"https://github.com/lepture/flask-wtf/issues/197","id":106366338,"number":197,"title":"404 Bad Request but there is {{ form.csrf_token }} and SECRET_KEY in form and config","user":{"login":"Avrong","id":6342851,"avatar_url":"https://avatars.githubusercontent.com/u/6342851?v=3","gravatar_id":"","url":"https://api.github.com/users/Avrong","html_url":"https://github.com/Avrong","followers_url":"https://api.github.com/users/Avrong/followers","following_url":"https://api.github.com/users/Avrong/following{/other_user}","gists_url":"https://api.github.com/users/Avrong/gists{/gist_id}","starred_url":"https://api.github.com/users/Avrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Avrong/subscriptions","organizations_url":"https://api.github.com/users/Avrong/orgs","repos_url":"https://api.github.com/users/Avrong/repos","events_url":"https://api.github.com/users/Avrong/events{/privacy}","received_events_url":"https://api.github.com/users/Avrong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lepture/flask-wtf/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-14T15:25:24Z","updated_at":"2015-09-17T10:25:17Z","closed_at":null,"body":"![snip_20150914180323](https://cloud.githubusercontent.com/assets/6342851/9853196/1a1e238e-5b0b-11e5-8be8-92ec5aa92a9c.png)\r\n\r\nYesterday application with this form worked normal, but today - error...\r\n...and flask also swears about g.flask.is_authenticated(). Changed to g.flask.is_authenticated...\r\n...and flashes does not work...\r\n\r\nforms.py\r\n```python\r\nclass LoginForm(Form):\r\n    email = StringField('email', validators=[DataRequired('...'), Email('...'), Length(3, 50, '...')])\r\n    password = PasswordField('password', validators=[DataRequired('...'), Length(3, 50, '...')])\r\n    submit = SubmitField('submit')\r\n```\r\n\r\ntemplate\r\n```html\r\n<div class=\"container\">\r\n    {% with flashes = get_flashed_messages() %}\r\n    {% if flashes %}\r\n    {% for flash in flashes %}\r\n    <div class=\"alert alert-{{ category }} alert-dismissable\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>{{ flash }}</div>\r\n    {% endfor %}{% endif %}{% endwith %}\r\n    <form class=\"form-signin\" method=\"POST\" role=\"form\" action=\"{{ url_for('admin_login') }}\">\r\n        {{ form.csrf_token }}\r\n        {{ form.email(class=\"form-control\", id=\"inputEmail\", placeholder=\"...\", type=\"email\", maxlength=\"30\") }}\r\n        {{ form.password(class=\"form-control\", placeholder=\"...\", id=\"inputPassword\", maxlength=\"50\") }}\r\n        {{ form.submit(class=\"btn btn-lg btn-primary btn-block\", value=\"...\") }}\r\n    </form>\r\n</div>\r\n```"},"comment":{"url":"https://api.github.com/repos/lepture/flask-wtf/issues/comments/141037805","html_url":"https://github.com/lepture/flask-wtf/issues/197#issuecomment-141037805","issue_url":"https://api.github.com/repos/lepture/flask-wtf/issues/197","id":141037805,"user":{"login":"shipperizer","id":3263345,"avatar_url":"https://avatars.githubusercontent.com/u/3263345?v=3","gravatar_id":"","url":"https://api.github.com/users/shipperizer","html_url":"https://github.com/shipperizer","followers_url":"https://api.github.com/users/shipperizer/followers","following_url":"https://api.github.com/users/shipperizer/following{/other_user}","gists_url":"https://api.github.com/users/shipperizer/gists{/gist_id}","starred_url":"https://api.github.com/users/shipperizer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shipperizer/subscriptions","organizations_url":"https://api.github.com/users/shipperizer/orgs","repos_url":"https://api.github.com/users/shipperizer/repos","events_url":"https://api.github.com/users/shipperizer/events{/privacy}","received_events_url":"https://api.github.com/users/shipperizer/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T10:25:17Z","updated_at":"2015-09-17T10:25:17Z","body":"It was saying Bad Request.\r\nI was switching to the newest flask-login (0.3.0) where they switched the is_authenticated method to a property...\r\nI reset the libraries but still not working, then I added some logging on the library code, and it worked till this morning, then after another reinstall everything is broken again....\r\nreally no ideas, im clueless"}}