On Tue, 13 Nov 2018 at 15:22, Axel Lebourhis axel.lebourhis@linaro.org wrote:
I cleaned up my browser cookies and now I'm getting the CSRF Verification Failed error, even with :
"CSRF_COOKIE_SECURE": false, "SESSION_COOKIE_SECURE": false
in /etc/lava-server/settings.conf
When changing /etc/lava-server/settings.conf ensure that the gunicorn service is restarted
$ sudo service lava-server-gunicorn restart
This isn't about browser cookies - some browsers cache authentication separately to cookies and sometimes it just needs a separate browser to get passed an initial failure. e..g use firefox instead of chrome and vice versa. Also it can be that all windows of the browser need to be closed.
I don't understand, I made no modifications.
Unless you use https:// you need to modify at least /etc/lava-server/settings.conf
On Tue, 13 Nov 2018 at 16:16, Neil Williams neil.williams@linaro.org wrote:
On Tue, 13 Nov 2018 at 15:04, Axel Lebourhis axel.lebourhis@linaro.org wrote:
Yes i'm using localhost and i'm using simple Django accounts.
In which case you need to set the CSRF settings to allow login without https as in the link I posted.
https://master.lavasoftware.org/static/docs/v2/installing_on_debian.html?hig...
On Tue, 13 Nov 2018 at 16:02, Neil Williams neil.williams@linaro.org wrote:
On Tue, 13 Nov 2018 at 14:55, Axel Lebourhis axel.lebourhis@linaro.org wrote:
Hi everyone,
I have some troubles to log in my Web UI.
Are you using http://localhost ? or are you trying to use http:// with a domain name but have not set up https?
If so, have you read the notes on CSRF support: https://master.lavasoftware.org/static/docs/v2/installing_on_debian.html?hig...
Have you configured LDAP or are you using simple Django accounts?
I type the good password and username and then the website sends me back to the home page. If I type a wrong password, I get an error message. It does the same thing for all user accounts. Tried to restart lava services, apache2 but it's still doing the same thing. No error messages returned in logs.
Best regards, Axel Le Bourhis _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/