mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
* adds authentication method for users * fix db migration with postgres * tests for auth method * update migration ids * hide auth method on user creation form * (docs): Added documentation for the new authentication method * update migration * add to auto-form instead of having hidden fields
21 lines
382 B
Python
21 lines
382 B
Python
from dataclasses import dataclass
|
|
from typing import Any
|
|
from uuid import UUID
|
|
|
|
from mealie.db.models.users.users import AuthMethod
|
|
|
|
|
|
@dataclass
|
|
class TestUser:
|
|
email: str
|
|
user_id: UUID
|
|
username: str
|
|
password: str
|
|
_group_id: UUID
|
|
token: Any
|
|
auth_method = AuthMethod.MEALIE
|
|
|
|
@property
|
|
def group_id(self) -> str:
|
|
return str(self._group_id)
|