Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Make sure identity is logged out when cancelling profile editing.
Browse files Browse the repository at this point in the history
The profile edit screen and login profile edit process need to be separated.
  • Loading branch information
Carlos A. Munoz committed Oct 23, 2013
1 parent 20cf804 commit 1512db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions zanata-war/src/main/java/org/zanata/action/ProfileAction.java
Expand Up @@ -248,6 +248,8 @@ public String edit() {

public String cancel() {
if (identityStore.isNewUser(username)) {
// Log the identity out
identity.logout();
return "home";
}
return "view";
Expand Down
2 changes: 1 addition & 1 deletion zanata-war/src/main/webapp/WEB-INF/template/banner.xhtml
Expand Up @@ -21,7 +21,7 @@
</s:link>
</h1>

<s:fragment rendered="#{identity.loggedIn}">
<s:fragment rendered="#{identity.loggedIn and personHome.instance.account.enabled}">
<a href="#off-canvas--right" id="user_avatar"
class="off-canvas__toggle--right l--float-right"
title="#{personHome.instance.account.username}">
Expand Down

0 comments on commit 1512db8

Please sign in to comment.