Added elaborate template switching.
This commit is contained in:
@@ -44,10 +44,9 @@ export async function login(credentials, userIp) {
|
||||
throw new HttpError('Logins are currently disabled', 405);
|
||||
}
|
||||
|
||||
const { user, stashes } = await fetchUser(credentials.username.trim(), {
|
||||
const { user } = await fetchUser(credentials.username.trim(), {
|
||||
email: true,
|
||||
raw: true,
|
||||
includeStashes: true,
|
||||
}).catch(() => {
|
||||
throw new HttpError('Username or password incorrect', 401);
|
||||
});
|
||||
@@ -67,7 +66,7 @@ export async function login(credentials, userIp) {
|
||||
}
|
||||
|
||||
// fetched the raw user for password verification, don't return directly to user
|
||||
return curateUser(user, { stashes });
|
||||
return curateUser(user);
|
||||
}
|
||||
|
||||
export async function signup(credentials, userIp) {
|
||||
|
||||
Reference in New Issue
Block a user