Closed OG-NI closed 3 months ago
Not sure if this is a problem if enabled
is not specified:
public async createUser(
email: string,
displayName: string,
password: string,
enabled?: boolean,
): Promise<User> {
return await this.prisma.user.create({
data: {
email,
displayName,
password,
enabled,
},
});
}
What this PR does/why we need it?: This adds an API endpoint for registering new users.
Which Issues does this PR fix?: Fixes #207