Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(20)

Issue 7395043: Store credentials in sessionStorage

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by matthew.scott
Modified:
11 years, 2 months ago
Reviewers:
gary.poster, mp+149669
Visibility:
Public.

Description

Store credentials in sessionStorage This branch moves credentials into sessionStorage in preparation for landscape work; it also adds a logout functionality. To test, comment out the password line in app/config-debug.js and run the application. You can login; refresh and not need to login again; logout and be presented with a login screen; refresh and still have to log in again. https://code.launchpad.net/~makyo/juju-gui/session-storage-1123693/+merge/149669 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 15

Patch Set 2 : Store credentials in sessionStorage #

Total comments: 3

Patch Set 3 : Store credentials in sessionStorage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -54 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 6 chunks +77 lines, -36 lines 0 comments Download
M app/index.html View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M app/store/env/base.js View 1 2 chunks +64 lines, -0 lines 0 comments Download
M app/store/env/python.js View 1 2 chunks +9 lines, -6 lines 0 comments Download
M app/views/login.js View 1 chunk +4 lines, -2 lines 0 comments Download
M lib/views/stylesheet.less View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M test/test_app.js View 5 chunks +13 lines, -2 lines 0 comments Download
M test/test_env_python.js View 2 chunks +5 lines, -1 line 0 comments Download
M test/test_login.js View 1 4 chunks +9 lines, -6 lines 0 comments Download
M test/test_routing.js View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 10
matthew.scott
Please take a look.
11 years, 2 months ago (2013-02-20 19:31:11 UTC) #1
gary.poster
Land with changes. Very nice Matt, thank you. I want to qa it, but if ...
11 years, 2 months ago (2013-02-20 21:55:41 UTC) #2
jeff.pihach
If I click 'login' without a password in the password field the field gets disabled ...
11 years, 2 months ago (2013-02-20 22:15:58 UTC) #3
jeff.pihach
https://codereview.appspot.com/7395043/diff/1/app/app.js File app/app.js (right): https://codereview.appspot.com/7395043/diff/1/app/app.js#newcode758 app/app.js:758: if (Y.Lang.isObject(credentials) && I'd try to combine these two ...
11 years, 2 months ago (2013-02-20 22:58:57 UTC) #4
gary.poster
One other thing. I think you will need something lines 363-392 (right side) of https://codereview.appspot.com/7372044/diff/1/app/app.js ...
11 years, 2 months ago (2013-02-21 14:49:42 UTC) #5
matthew.scott
https://codereview.appspot.com/7395043/diff/1/app/app.js File app/app.js (right): https://codereview.appspot.com/7395043/diff/1/app/app.js#newcode305 app/app.js:305: // arrive with the log), and redispatch. On 2013/02/20 ...
11 years, 2 months ago (2013-02-21 18:02:13 UTC) #6
matthew.scott
Please take a look.
11 years, 2 months ago (2013-02-21 18:11:33 UTC) #7
gary.poster
LGTM with changes. Very nice. Works great. Thanks! Gary https://codereview.appspot.com/7395043/diff/11001/app/app.js File app/app.js (right): https://codereview.appspot.com/7395043/diff/11001/app/app.js#newcode352 app/app.js:352: ...
11 years, 2 months ago (2013-02-21 18:35:00 UTC) #8
jeff.pihach
Looks good thanks, Land as is.
11 years, 2 months ago (2013-02-21 18:50:58 UTC) #9
matthew.scott
11 years, 2 months ago (2013-02-21 19:10:39 UTC) #10
*** Submitted:

Store credentials in sessionStorage

This branch moves credentials into sessionStorage in preparation for landscape
work; it also adds a logout functionality.  To test, comment out the password
line in app/config-debug.js and run the application.  You can login; refresh and
not need to login again; logout and be presented with a login screen; refresh
and still have to log in again.

R=gary.poster, jeff.pihach
CC=
https://codereview.appspot.com/7395043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b