Skip to content

Commit 7a0d95d

Browse files
Merge pull request #26 from goncalopinto1/feature/admin-page
again
2 parents 5fa8055 + 11929a1 commit 7a0d95d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from backend.email_validation import email_validator_address
1414
from backend.posts import get_all_posts, create_posts, delete_posts, update_posts, get_post_by_id
1515
from pathlib import Path
16+
from backend.models import Users
1617
import os
1718

1819
from pydantic import BaseModel
@@ -130,7 +131,7 @@ async def setup_admin(secret_key: str):
130131
return {"message": "Admin já existe!"}
131132

132133
# Cria admin
133-
admin = User(
134+
admin = Users(
134135
email="goncalo.luis.pinto@gmail.com",
135136
password=pwd_context.hash("BestAdmin") # ← MUDA ISTO!
136137
)

0 commit comments

Comments
 (0)