comparison src/browser/libervia_main.py @ 730:108bb9d74fa2

browser_side: fixes auto-login (broken by previous changeset)
author souliane <souliane@mailoo.org>
date Wed, 21 Oct 2015 15:08:34 +0200
parents 5745b5e6586a
children 9b57d117e8c5
comparison
equal deleted inserted replaced
729:273b39f04d8e 730:108bb9d74fa2
421 """This method retrieve the eventual URL parameters to auto-connect the user. 421 """This method retrieve the eventual URL parameters to auto-connect the user.
422 @param skip_validation: if True, set the form values but do not validate it 422 @param skip_validation: if True, set the form values but do not validate it
423 """ 423 """
424 params = strings.getURLParams(Window.getLocation().getSearch()) 424 params = strings.getURLParams(Window.getLocation().getSearch())
425 if "login" in params: 425 if "login" in params:
426 self._register_box._form.right_side.selectTab(0) 426 self._register_box._form.right_side.showStack(0)
427 self._register_box._form.login_box.setText(params["login"]) 427 self._register_box._form.login_box.setText(params["login"])
428 self._register_box._form.login_pass_box.setFocus(True) 428 self._register_box._form.login_pass_box.setFocus(True)
429 if "passwd" in params: 429 if "passwd" in params:
430 # try to connect 430 # try to connect
431 self._register_box._form.login_pass_box.setText(params["passwd"]) 431 self._register_box._form.login_pass_box.setText(params["passwd"])