1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5546: Fix Zendesk login (#1473)

(cherry picked from commit f75718f2f4ea893776b78e7cf31130b019755e4a)
This commit is contained in:
Frederick Borges 2021-09-22 14:00:34 +02:00 committed by Tino Vazquez
parent bb96b59617
commit 292e69e708
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ define(function(require) {
$(".submit_support_credentials_button", context).html("<i class=\"fas fa-spinner fa-spin\"></i>");
var data = {
email : $("#support_email", this).val(),
password : $("#support_password", this).val()
password : btoa($("#support_password", this).val())
};
$.ajax({
url: "support/credentials",

View File

@ -355,7 +355,7 @@ post '/support/credentials' do
end
session['zendesk_email'] = body_hash['email']
session['zendesk_password'] = body_hash['password']
session['zendesk_password'] = Base64.decode64(body_hash['password'])
zendesk_client