192 .format(reply.url().scheme(), reply.url().authority()) |
192 .format(reply.url().scheme(), reply.url().authority()) |
193 realm = auth.realm() |
193 realm = auth.realm() |
194 if not realm and 'realm' in auth.options(): |
194 if not realm and 'realm' in auth.options(): |
195 realm = auth.option("realm") |
195 realm = auth.option("realm") |
196 if realm: |
196 if realm: |
|
197 info = self.trUtf8("<b>Enter username and password for '{0}', " |
|
198 "realm '{1}'</b>").format(urlRoot, realm) |
|
199 else: |
197 info = self.trUtf8("<b>Enter username and password for '{0}'</b>")\ |
200 info = self.trUtf8("<b>Enter username and password for '{0}'</b>")\ |
198 .format(urlRoot) |
201 .format(urlRoot) |
199 else: |
|
200 info = self.trUtf8("<b>Enter username and password for '{0}', " |
|
201 "realm '{1}'</b>").format(urlRoot, realm) |
|
202 |
202 |
203 dlg = AuthenticationDialog(info, auth.user(), |
203 dlg = AuthenticationDialog(info, auth.user(), |
204 Preferences.getUser("SavePasswords"), |
204 Preferences.getUser("SavePasswords"), |
205 Preferences.getUser("SavePasswords")) |
205 Preferences.getUser("SavePasswords")) |
206 if Preferences.getUser("SavePasswords"): |
206 if Preferences.getUser("SavePasswords"): |