mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 00:04:23 -04:00
Feature: Add "Authentication Method" to allow existing users to sign in with LDAP (#2143)
* 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
This commit is contained in:
@@ -2,6 +2,8 @@ from dataclasses import dataclass
|
||||
from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
from mealie.db.models.users.users import AuthMethod
|
||||
|
||||
|
||||
@dataclass
|
||||
class TestUser:
|
||||
@@ -11,6 +13,7 @@ class TestUser:
|
||||
password: str
|
||||
_group_id: UUID
|
||||
token: Any
|
||||
auth_method = AuthMethod.MEALIE
|
||||
|
||||
@property
|
||||
def group_id(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user