D22190: auto log in if username and password have been loaded from kwallet

2019-07-02 Thread Harald Sitter
This revision was automatically updated to reflect the committed changes.
Closed by commit R871:add2ad75e362: auto log in if username and password have 
been loaded from kwallet (authored by sitter).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D22190?vs=60933=61000#toc

REPOSITORY
  R871 DrKonqi

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D22190?vs=60933=61000

REVISION DETAIL
  https://phabricator.kde.org/D22190

AFFECTED FILES
  src/bugzillaintegration/reportassistantpages_bugzilla.cpp
  src/bugzillaintegration/reportassistantpages_bugzilla.h

To: sitter, #plasma, ngraham
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart


D22190: auto log in if username and password have been loaded from kwallet

2019-07-01 Thread Nathaniel Graham
ngraham accepted this revision.
ngraham added a comment.
This revision is now accepted and ready to land.


  +1, LGTM.

REPOSITORY
  R871 DrKonqi

BRANCH
  auto-login

REVISION DETAIL
  https://phabricator.kde.org/D22190

To: sitter, #plasma, ngraham
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart


D22190: auto log in if username and password have been loaded from kwallet

2019-07-01 Thread Harald Sitter
sitter created this revision.
sitter added reviewers: Plasma, ngraham.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.

REVISION SUMMARY
  it's a bit moot to load the data from the wallet and then still have the
  user manually click a log in button when we could just as well have tried
  to log in using the stored credentials.
  
  the new behavior is that the user goes through the bug reporting dialog,
  and when showing the login page it will automatically try to login using
  stored credentials. if the creds check out, the dialog automatically moves
  on to the next page.
  
  - page-validity is now in a helper canLogin function as it needs checking in 
two functions now (walletlogin and loginclick)
  - the page now automatically goes into login state and attempts to log in 
using stored credentials
  
  in the event that the credentials are wrong (e.g. password changed on
  website) the page will enter error state saying the credentials are wrong.
  when no credentials are in the wallet or the credentials are incomplete
  (password remembering is off) no auto login happens.

TEST PLAN
  - have no credentials -> no auto login
  - login manually and store credentials -> restart -> auto login happens
  - change password on website -> restart -> auto login fails & error is shown

REPOSITORY
  R871 DrKonqi

BRANCH
  auto-login

REVISION DETAIL
  https://phabricator.kde.org/D22190

AFFECTED FILES
  src/bugzillaintegration/reportassistantpages_bugzilla.cpp
  src/bugzillaintegration/reportassistantpages_bugzilla.h

To: sitter, #plasma, ngraham
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, mart