From ed47aaa04937b19ed1fe26f4b5cf0af910042681 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Sep 2022 12:44:14 +0200 Subject: Always return to welcome page if only web login is enabled --- src/loginform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/loginform.cpp b/src/loginform.cpp index 7c4deaa..c282898 100644 --- a/src/loginform.cpp +++ b/src/loginform.cpp @@ -191,7 +191,9 @@ void LoginForm::initialize() } if (Settings::shibSessionEnabled()) { - pageCount++; + pageCount += 2; // Fake this so we always return on timeout; + // otherwise, the browser session could expire after some time, breaking + // the login process. if (!Settings::shibSessionButtonText().isEmpty()) { ui->shibButton->setText(Settings::shibSessionButtonText()); } -- cgit v1.2.3-55-g7522