mirror of
https://github.com/grocy/grocy.git
synced 2026-10-16 21:00:04 +02:00
This commit is contained in:
parent
020841117f
commit
0cf4d557af
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
### General
|
||||
|
||||
- xxx
|
||||
- Fixed that it wasn't possible to log in using passwords containing non-latin characters
|
||||
|
||||
### API
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ $("#login-button").on("click", function (e)
|
|||
{
|
||||
e.preventDefault();
|
||||
|
||||
$("#password_base64").val(btoa($("#password_input").val()));
|
||||
$("#password_base64").val(btoa(String.fromCharCode(...new TextEncoder().encode($("#password_input").val()))));
|
||||
$("#login-form").trigger("submit");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ $('#save-user-button').on('click', function (e)
|
|||
jsonData.picture_file_name = RandomString() + CleanFileName($("#user-picture")[0].files[0].name);
|
||||
}
|
||||
|
||||
jsonData.password_base64 = btoa(jsonData.password);
|
||||
jsonData.password_base64 = btoa(String.fromCharCode(...new TextEncoder().encode(jsonData.password)));
|
||||
delete jsonData.password;
|
||||
delete jsonData.password_confirm;
|
||||
delete jsonData.change_password;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user