We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52fac84 commit 2374939Copy full SHA for 2374939
1 file changed
server/endpoints/system.js
@@ -105,7 +105,7 @@ function systemEndpoints(app) {
105
106
if (await SystemSettings.isMultiUserMode()) {
107
const { username, password } = reqBody(request);
108
- const existingUser = await User.get({ username });
+ const existingUser = await User.get({ username: String(username) });
109
110
if (!existingUser) {
111
await EventLogs.logEvent(
@@ -125,7 +125,7 @@ function systemEndpoints(app) {
125
return;
126
}
127
128
- if (!bcrypt.compareSync(password, existingUser.password)) {
+ if (!bcrypt.compareSync(String(password), existingUser.password)) {
129
130
"failed_login_invalid_password",
131
{
0 commit comments