first commit
This commit is contained in:
commit
0b5426a5d1
16 files changed
+352
No files matched your search
@@ -0,0 +1,13 @@
|
||||
from ninja import Schema
|
||||
from pydantic import EmailStr, Field
|
||||
|
||||
|
||||
class UserRegistrationSchema(Schema):
|
||||
username: str
|
||||
email: EmailStr
|
||||
password: str = Field(min_length=6)
|
||||
|
||||
|
||||
class UserLoginSchema(Schema):
|
||||
username: str
|
||||
password: str
|
||||
Reference in new issue
Block a user