mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #2078: Fix sunstone login and international characters
(cherry picked from commit 2fd871da3c)
This commit is contained in:
1 parent
66430bd9e9
commit
f12e83b096
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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>\
|
||||
|
||||
Reference in new issue
Block a user