fix: user registration with email support
Some checks failed
docker-push / build-and-push (push) Failing after 18s
docker-push / deploy (push) Has been skipped

This commit is contained in:
SpecialX
2025-11-28 19:29:49 +08:00
parent 210e791f76
commit d2468e9fca
178 changed files with 39 additions and 579 deletions

View File

@@ -41,6 +41,15 @@ export const UserService = {
});
},
/**
* Get user by email
*/
async getUserByEmail(email: string) {
return prisma.user.findUnique({
where: { email }
});
},
/**
* Create a new user with hashed password
*/
@@ -54,6 +63,7 @@ export const UserService = {
data: {
username,
password: hashedPassword,
email,
avatarUrl,
role: 'CREATOR',
status: 'ACTIVE'