mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Wizard: Find user:pw even if redirected #4265
This commit is contained in:
parent
3de8f27a02
commit
fe75c6ad28
1 changed files with 7 additions and 0 deletions
|
@ -81,6 +81,13 @@ void OwncloudHttpCredsPage::initializePage()
|
|||
} else {
|
||||
QUrl url = ocWizard->account()->url();
|
||||
|
||||
// If the final url does not have a username, check the
|
||||
// user specified url too. Sometimes redirects can lose
|
||||
// the user:pw information.
|
||||
if (url.userName().isEmpty()) {
|
||||
url = ocWizard->ocUrl();
|
||||
}
|
||||
|
||||
const QString user = url.userName();
|
||||
const QString password = url.password();
|
||||
|
||||
|
|
Loading…
Reference in a new issue