Add tests for authController.registerUser and authController.loginUser
This commit is contained in:
1 parent
485e520dcb
commit
a46f5ae3ab
2 files changed
+155
-1
No files matched your search
@@ -141,7 +141,7 @@ const loginUser = async (req, res, next) => {
|
||||
delete userWithoutPassword.avatarImage;
|
||||
|
||||
// Happy path, return token
|
||||
const appSettings = req.settingsService.getSettings();
|
||||
const appSettings = await req.settingsService.getSettings();
|
||||
const token = issueToken(userWithoutPassword, appSettings);
|
||||
// reset avatar image
|
||||
userWithoutPassword.avatarImage = user.avatarImage;
|
||||
|
||||
Reference in new issue
Block a user