Merge lp:~nataliabidart/ubuntu-sso-client/handle-user-not-validated into lp:ubuntu-sso-client
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Natalia Bidart | ||||
Approved revision: | 647 | ||||
Merged at revision: | 646 | ||||
Proposed branch: | lp:~nataliabidart/ubuntu-sso-client/handle-user-not-validated | ||||
Merge into: | lp:ubuntu-sso-client | ||||
Diff against target: |
447 lines (+181/-24) 6 files modified
ubuntu_sso/account.py (+21/-0) ubuntu_sso/gui.py (+17/-2) ubuntu_sso/main.py (+31/-18) ubuntu_sso/tests/test_account.py (+37/-0) ubuntu_sso/tests/test_gui.py (+37/-1) ubuntu_sso/tests/test_main.py (+38/-3) |
||||
To merge this branch: | bzr merge lp:~nataliabidart/ubuntu-sso-client/handle-user-not-validated | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alejandro J. Cura (community) | Approve | ||
Roman Yepishev (community) | fieldtest | Approve | |
Review via email: mp+39779@code.launchpad.net |
Commit message
* Added a new DBus signal UserNotValidated to indicate when a user is registered but not validated (LP: #667899).
* Added new workflow so email validation is requested if necessary.
Description of the change
To test, run in this branch the following:
* killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. ./bin/ubuntu-
* In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, object path /com/ubuntu/
Parameters must be something like:
'Ubuntu One', {'ping_url': 'https:/
* Once you get the SSO GUI, register a non existent user and do not enter the validation code. Just close the window when the validation code is requested.
* Open the SSO GUI again using d-feet and try to register the same user, you'll get a "Email already registered" error.
* Click on "I already have an account..." to login, and try to login with the former user and pass.
Behavior expected:
- The login process doesn't succeed but instead the verification screen appears.
Works as advertised.
Just awesome!