Fix autologin after account creation
This commit is contained in:
+1
-1
@@ -363,7 +363,7 @@ async function interactionLogin(req, res, next) {
|
||||
const token = await tokens.getByAccessToken(req.body.autoLoginToken);
|
||||
if (!token) return next(new HttpError(401, 'No such token'));
|
||||
|
||||
const user = await users.getByUsername(token.identifier);
|
||||
const user = await users.get(token.identifier);
|
||||
if (!user) return next(new HttpError(401,'User not found'));
|
||||
|
||||
const result = {
|
||||
|
||||
Reference in New Issue
Block a user