B #5546: Fix Zendesk login (#1473)

(cherry picked from commit f75718f2f4ea893776b78e7cf31130b019755e4a)
This commit is contained in:
Frederick Borges authored and Tino Vazquez committed 2021-09-22 14:01:25 +02:00
1 parent bb96b59617
commit 292e69e708
2 files changed
+2 -2

No files matched your search

+1 -1
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",
+1 -1
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