Merge pull request #12359 from owncloud/fix-redirect-url-for-password-change

Use `/` as redirect location if webroot is set to an empty value
This commit is contained in:
Thomas Müller 2014-11-24 11:09:17 +01:00
commit e956bd1094
1 changed files with 5 additions and 1 deletions

View File

@ -112,7 +112,11 @@ OC.Lostpassword = {
},
redirect : function(msg){
window.location = OC.webroot;
if(OC.webroot !== '') {
window.location = OC.webroot;
} else {
window.location = '/';
}
},
resetError : function(msg){