Flectra 1.5 Bad Request - Session expired (invalid CSRF token) at Login
Summary Flectra 1.5 Bad Request - Session expired (invalid CSRF token) at Login
Steps to reproduce
In Flectra 1.5 if I do this following steps:
- Login with the wrong password => Wrong Login/Password
- Login with the correct password => Bad Request - Session expired (invalid CSRF token)
What is the current bug behavior?
This happened with New or Existing Database
What is the expected correct behavior?
should be allowed to log in and not appear this error message
Relevant logs and/or screenshots
/Users/tiongsin/Documents/Python/Python3.6/bin/python flectra-bin -c flectra.conf 2019-03-16 07:47:10,167 3725 INFO ? flectra: Flectra version 1.5 2019-03-16 07:47:10,167 3725 INFO ? flectra: Using configuration file at /Users/tiongsin/Documents/Python/Flectra/v1.5/flectra.conf 2019-03-16 07:47:10,167 3725 INFO ? flectra: addons paths: ['/Users/tiongsin/Library/Application Support/Flectra/addons/1.5', '/Users/tiongsin/Documents/Python/Flectra/v1.5/flectra/addons', '/Users/tiongsin/Documents/Python/Flectra/v1.5/addons', '/Users/tiongsin/Documents/Python/Flectra/addons/v1.2/baja'] 2019-03-16 07:47:10,168 3725 INFO ? flectra: database: flectra@default:default Warn: Can't find .pfb for face 'Times-Roman' 2019-03-16 07:47:10,325 3725 INFO ? flectra.addons.base.ir.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf 2019-03-16 07:47:15,206 3725 INFO ? flectra.service.server: HTTP service (werkzeug) running on TSMac.local:7073 2019-03-16 07:47:15,956 3725 WARNING ? flectra.addons.rest_api.controllers.main: Warning: To proper setup OAuth - it's necessary to set the parameter 'db_name' in flectra config file! 2019-03-16 07:47:16,209 3725 INFO ? flectra.http: HTTP Configuring static files 2019-03-16 07:47:16,237 3725 INFO F15_Demo flectra.modules.loading: loading 1 modules... 2019-03-16 07:47:16,255 3725 INFO F15_Demo flectra.modules.loading: 1 modules loaded in 0.02s, 6 queries 2019-03-16 07:47:16,311 3725 INFO F15_Demo flectra.modules.loading: loading 20 modules... 2019-03-16 07:47:16,427 3725 INFO F15_Demo flectra.modules.loading: 20 modules loaded in 0.12s, 108 queries 2019-03-16 07:47:16,712 3725 INFO F15_Demo flectra.modules.loading: Modules loaded. 2019-03-16 07:47:16,717 3725 INFO F15_Demo flectra.addons.base.ir.ir_http: Generating routing map 2019-03-16 07:47:16,924 3725 INFO F15_Demo flectra.addons.base.res.res_users: Login failed for db:F15_Demo login:admin from 127.0.0.1 2019-03-16 07:47:17,239 3725 INFO F15_Demo flectra.modules.registry: At least one model cache has been invalidated, signaling through the database. 2019-03-16 07:47:17,239 3725 INFO F15_Demo werkzeug: 127.0.0.1 - - [16/Mar/2019 07:47:17] "POST /web/login HTTP/1.1" 200 - 645 0.240 0.789 2019-03-16 07:47:17,259 3725 INFO F15_Demo werkzeug: 127.0.0.1 - - [16/Mar/2019 07:47:17] "GET /web/binary/company_logo?dbname=F15_Demo HTTP/1.1" 200 - 4 0.003 0.004 2019-03-16 07:47:17,310 3725 INFO F15_Demo werkzeug: 127.0.0.1 - - [16/Mar/2019 07:47:17] "GET /web/webclient/qweb?mods= HTTP/1.1" 200 - 1 0.000 0.003 2019-03-16 07:47:17,311 3725 INFO F15_Demo werkzeug: 127.0.0.1 - - [16/Mar/2019 07:47:17] "POST /web/webclient/bootstrap_translations HTTP/1.1" 200 - 1 0.001 0.002 2019-03-16 07:47:20,589 3725 WARNING F15_Demo flectra.http: CSRF validation failed on path '/web/login' 2019-03-16 07:47:20,590 3725 INFO F15_Demo werkzeug: 127.0.0.1 - - [16/Mar/2019 07:47:20] "POST /web/login HTTP/1.1" 400 - 1 0.000 0.003
(If you can, link to the line of code that might be responsible for the problem)