fix: update user creation to use 'name' instead of 'full_name'
This commit is contained in:
parent
fab76ea6ee
commit
ad6283680b
|
|
@ -5,7 +5,7 @@ from datetime import datetime, timedelta, timezone
|
||||||
from typing import Any, Mapping
|
from typing import Any, Mapping
|
||||||
|
|
||||||
import jwt
|
import jwt
|
||||||
from passlib.context import CryptContext
|
from passlib.context import CryptContext # type: ignore
|
||||||
|
|
||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ class UserRepository:
|
||||||
user = User(
|
user = User(
|
||||||
email=data.email,
|
email=data.email,
|
||||||
hashed_password=hashed_password,
|
hashed_password=hashed_password,
|
||||||
full_name=data.full_name,
|
name=data.name,
|
||||||
is_active=data.is_active,
|
is_active=data.is_active,
|
||||||
)
|
)
|
||||||
self._session.add(user)
|
self._session.add(user)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue