Resolved errors bug and fixed the permanote controller - also working toward renaming all instances of PermaLink to permanote

This commit is contained in:
Ben
2018-11-08 14:39:08 +00:00
parent 7aead446de
commit 08a5fe4fa8
11 changed files with 28 additions and 23 deletions

View File

@@ -42,7 +42,8 @@ export class LoginController extends ControllerHandler {
const match = await User.Password.compare(password, user.password);
if (!match) {
errors.addError(401, 'Unauthorized', 'Incorrect password for user').endpoint();
errors.addError(401, 'Unauthorized', 'Incorrect password for user');
errors.endpoint();
next();
return;
}