Added elaborate template switching.

This commit is contained in:
2024-08-26 06:15:22 +02:00
parent fa991c0294
commit 80d8a8109a
29 changed files with 617 additions and 180 deletions

View File

@@ -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) {