Pablo-WMDE added a comment.

  In the story writing the question came up: "how can we, upon sending the user 
to the login page in a new tab, communicate to them to close the tab and return 
to bridge after login?".
  
  Option 1: to show a message to the user //on the login page// (above the 
username & password fields), we could use the `warning` parameter, e.g.
  
https://en.wikipedia.org/w/index.php?title=Special:UserLogin&warning=mobile-frontend-watchlist-purpose
 (message keys which are applicable can be manipulated via the 
`LoginFormValidErrorMessages` hook)
  
  I did not find a built-in way to show a message on the default login success 
page (`LoginSignupSpecialPage::showSuccessPage()`) short of using the 
`UserLoginComplete` hook to (conditionally?) manipulate `$injected_html` - 
which feels rather iffy.
  
  Option 2: to show a message //after successful login// is to create a 
dedicated page for this purpose and use it as the `returnto` parameter of the 
login, e.g.
  
https://en.wikipedia.org/w/index.php?title=Special:UserLogin&returnto=Special:BridgeWaitingForYou
  
  Option 1 is rather simple to implement but is not ideally placed in the user 
journey. Option 2 appears in the right moment and offers more possibilities, 
but comes at the price of maintaining the weird landing page.

TASK DETAIL
  https://phabricator.wikimedia.org/T247250

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pablo-WMDE
Cc: Sarai-WMDE, Charlie_WMDE, Lucas_Werkmeister_WMDE, Tonina_Zhelyazkova_WMDE, 
Pablo-WMDE, Aklapper, Michael, Lydia_Pintscher, darthmon_wmde, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to