Add missing URI component encoding on login
This commit is contained in:
parent
e00ebb49ca
commit
269db12436
|
@ -59,7 +59,7 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
|
|||
};
|
||||
if (!this.inputs[0].text)
|
||||
return onFail(i18next.t('menu:emptyUsername'));
|
||||
Utils.apiPost(`account/login`, `username=${this.inputs[0].text}&password=${this.inputs[1].text}`, 'application/x-www-form-urlencoded')
|
||||
Utils.apiPost(`account/login`, `username=${encodeURIComponent(this.inputs[0].text)}&password=${encodeURIComponent(this.inputs[1].text)}`, 'application/x-www-form-urlencoded')
|
||||
.then(response => {
|
||||
if (!response.ok)
|
||||
return response.text();
|
||||
|
|
Loading…
Reference in New Issue