mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
When signing up, it will fail, as it cannot fetch the user info again
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
for verify use.
This commit is contained in:
parent
29760dda96
commit
e72e191b35
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ export default defineEventHandler(async (event) => {
|
||||||
`;
|
`;
|
||||||
|
|
||||||
setCookie(event, "token", newToken);
|
setCookie(event, "token", newToken);
|
||||||
|
const fetchUserInfoAgain = await sql`
|
||||||
|
select * from users
|
||||||
|
where username = ${username}`;
|
||||||
return {
|
return {
|
||||||
user: fetchUserInfoAgain,
|
user: fetchUserInfoAgain,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue