mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55:37 +01:00
Refactor login functionality to use email instead of username. Update related tests, API routes, and database schema to support email-based authentication. Ensure consistency across login forms and queries.
This commit is contained in:
parent
d961c058dd
commit
6223e22c0d
7 changed files with 49 additions and 21 deletions
|
|
@ -11,6 +11,8 @@ datasource db {
|
|||
model User {
|
||||
id String @id @unique @map("user_id") @db.VarChar(36)
|
||||
username String @unique @db.VarChar(255)
|
||||
email String? @unique @db.VarChar(255)
|
||||
emailVerified DateTime? @map("email_verified") @db.Timestamp(0)
|
||||
password String @db.VarChar(60)
|
||||
role String @map("role") @db.VarChar(50)
|
||||
logoUrl String? @map("logo_url") @db.VarChar(2183)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue