bug #2078: Fix sunstone login and international characters

(cherry picked from commit 2fd871da3c)
This commit is contained in:
Daniel Molina committed 2013-07-24 12:31:18 +02:00
1 parent 66430bd9e9
commit f12e83b096
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -453,7 +453,7 @@ var OpenNebula = {
var token = username + ':' + password;
var authString = 'Basic ';
if (typeof(btoa) === 'function')
authString += btoa(token)
authString += btoa(unescape(encodeURIComponent( token )))
else {
token = CryptoJS.enc.Utf8.parse(token);
authString += CryptoJS.enc.Base64.stringify(token)
+1 -1
View File
@@ -478,7 +478,7 @@ function setLogin(){
};
var user_login_content = '<div href="#" class="button tiny secondary dropdown" id="logout">\
<i class="icon-user header-icon"></i> '+ username + '\
<i class="icon-user header-icon"></i> '+ decodeURIComponent(username) + '\
<ul>\
<li><a href="#" class="configuration"><i class="icon-cog"></i> Settings</a></li>\
<li><a href="#" class="logout"><i class="icon-off"></i> Sign Out</a></li>\