auth api tested
This commit is contained in:
@@ -15,7 +15,7 @@ from sqlalchemy import (
|
||||
)
|
||||
from sqlalchemy.orm import mapped_column, relationship, Mapped
|
||||
|
||||
from Services.PostgresDb import CrudCollection
|
||||
from Services.PostgresService.controllers.mixin_controllers import CrudCollection
|
||||
from config import ApiStatic
|
||||
|
||||
from ApiLayers.ApiLibrary.date_time_actions.date_functions import system_arrow
|
||||
@@ -144,8 +144,7 @@ class Users(CrudCollection, SelectAction):
|
||||
return "Occupant" if self.is_occupant else "Employee"
|
||||
|
||||
@classmethod
|
||||
def credentials(cls):
|
||||
db_session = cls.new_session()
|
||||
def credentials(cls, db_session):
|
||||
person_object: People = People.filter_by_one(
|
||||
db=db_session, system=True, id=cls.person_id
|
||||
).data
|
||||
|
||||
Reference in New Issue
Block a user