1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 12:25:54 +02:00
This commit is contained in:
syuilo
2019-06-15 00:07:41 +09:00
parent 2bd03ca725
commit 2615368b1e
8 changed files with 23 additions and 36 deletions

View File

@@ -58,13 +58,13 @@ export default async (ctx: Koa.BaseContext) => {
}
// Validate username
if (!Users.validateUsername(username)) {
if (!Users.validateLocalUsername.ok(username)) {
ctx.status = 400;
return;
}
// Validate password
if (!Users.validatePassword(password)) {
if (!Users.validatePassword.ok(password)) {
ctx.status = 400;
return;
}