metajack/strophejs — Issue #69: Authentication failed with Unicode Password
Author: gitgotcha77
Created: 2011-11-18 14:23:47+00:00
State: open

The Candy guys send me here: https://github.com/amiadogroup/candy/issues/59
:)

Tested with Candy 1.0.6 and OpenFire 3.7.1.
My test account is username "和製漢字" password "和製漢字".
Login into OpenFire works however with Candy the login fails for PLAIN and DIGEST-MD5.

PLAIN fix:
In libs.bundle.js line 3027:
from: auth_str = auth_str + this.pass;
to: auth_str = auth_str + unescape(encodeURIComponent(this.pass));

DIGEST-MD5 fix:
In libs.bundle.js line 3107:
from: ":" + realm + ":" + this.pass) +
to: ":" + realm + ":" + unescape(encodeURIComponent(this.pass))) +