mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #2078: Fix sunstone login and international characters
(cherry picked from commit 2fd871da3cd7193baa6e98e107d8e8197723aac2)
This commit is contained in:
parent
66430bd9e9
commit
f12e83b096
@ -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>\
|
||||
|
Loading…
x
Reference in New Issue
Block a user