diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-24 15:31:55 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-02-28 23:58:51 -0500 |
commit | 87901ed7098dff72e4a62dfe582c2b83439b7280 (patch) | |
tree | 9fcf4354796ac72d68b48ead826f6b3c8db0a818 /install/ui/test | |
parent | a5a55ceff3822ede55ad817ede0da5712fb75651 (diff) | |
download | freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.tar.gz freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.tar.xz freeipa-87901ed7098dff72e4a62dfe582c2b83439b7280.zip |
Added logout button
Logout button was added to Web UI.
Click on logout button executes session_logout command. If command succeeds or xhr stutus is 401 (unauthorized - already logged out) page is redirected to logout.html.
logout.html is a simple page with "You have been logged out" text and a link to return back to main page.
https://fedorahosted.org/freeipa/ticket/2363
Diffstat (limited to 'install/ui/test')
-rw-r--r-- | install/ui/test/data/ipa_init.json | 4 | ||||
-rw-r--r-- | install/ui/test/data/session_logout.json | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 29880b2eb..e5b4be169 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -110,7 +110,9 @@ }, "false": "False", "login": { - "header": "Logged In As" + "header": "Logged In As", + "logout": "Logout", + "logout_error": "Logout error" }, "objects": { "aci": { diff --git a/install/ui/test/data/session_logout.json b/install/ui/test/data/session_logout.json new file mode 100644 index 000000000..13410c6e2 --- /dev/null +++ b/install/ui/test/data/session_logout.json @@ -0,0 +1,7 @@ +{ + "error": null, + "id": null, + "result": { + "result": null + } +}
\ No newline at end of file |