mirror of https://github.com/apache/archiva.git
fix error handling on resetPassword
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1300949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2eb122127b
commit
69c540f321
|
@ -49,14 +49,14 @@ $(function() {
|
|||
$.cookie('redback_login', null);
|
||||
}
|
||||
|
||||
logout=function(){
|
||||
logout=function(screenChange){
|
||||
deleteLoginCookie();
|
||||
$("#login-link").show();
|
||||
$("#register-link").show();
|
||||
$("#logout-link").hide();
|
||||
$("#change-password-link").hide();
|
||||
hideElementWithKarma();
|
||||
screenChange();
|
||||
if (screenChange) screenChange();
|
||||
$("#main-content").html("");
|
||||
$.ajax({
|
||||
url: 'restServices/redbackServices/loginService/logout'
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<a href="#" onclick="editUserDetailsBox();">${$.i18n.prop('edit.details')}</a>
|
||||
</li>
|
||||
<li id="logout-link" class="pull-right" style="display: none">
|
||||
<a href="#" onclick="logout();" id="logout-link-a">
|
||||
<a href="#" onclick="logout(true);" id="logout-link-a">
|
||||
<span class="label label-important force-upper-case">${$.i18n.prop('logout')}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -414,7 +414,7 @@ $(function() {
|
|||
$.log("resetPasswordForm:"+key);
|
||||
validateKey(key,false);
|
||||
$.log("resetPasswordForm#validateKey ok");
|
||||
displaySearch();
|
||||
//displaySearch();
|
||||
}
|
||||
|
||||
passwordReset=function(){
|
||||
|
@ -668,6 +668,7 @@ $(function() {
|
|||
error: function(result) {
|
||||
var obj = jQuery.parseJSON(result.responseText);
|
||||
displayRedbackError(obj);
|
||||
logout(false);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue