mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 01:34:39 -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:
		| @@ -5,6 +5,8 @@ | ||||
| /* Do not modify it by hand - just update the pydantic models and then re-run the script | ||||
| */ | ||||
|  | ||||
| export type AuthMethod = "Mealie" | "LDAP"; | ||||
|  | ||||
| export interface ChangePassword { | ||||
|   currentPassword: string; | ||||
|   newPassword: string; | ||||
| @@ -53,6 +55,7 @@ export interface UserOut { | ||||
|   username?: string; | ||||
|   fullName?: string; | ||||
|   email: string; | ||||
|   authMethod?: AuthMethod & string; | ||||
|   admin?: boolean; | ||||
|   group: string; | ||||
|   advanced?: boolean; | ||||
| @@ -99,6 +102,7 @@ export interface PrivateUser { | ||||
|   username?: string; | ||||
|   fullName?: string; | ||||
|   email: string; | ||||
|   authMethod?: AuthMethod & string; | ||||
|   admin?: boolean; | ||||
|   group: string; | ||||
|   advanced?: boolean; | ||||
| @@ -150,6 +154,7 @@ export interface UserBase { | ||||
|   username?: string; | ||||
|   fullName?: string; | ||||
|   email: string; | ||||
|   authMethod?: AuthMethod & string; | ||||
|   admin?: boolean; | ||||
|   group?: string; | ||||
|   advanced?: boolean; | ||||
| @@ -162,6 +167,7 @@ export interface UserFavorites { | ||||
|   username?: string; | ||||
|   fullName?: string; | ||||
|   email: string; | ||||
|   authMethod?: AuthMethod & string; | ||||
|   admin?: boolean; | ||||
|   group?: string; | ||||
|   advanced?: boolean; | ||||
| @@ -214,6 +220,7 @@ export interface UserIn { | ||||
|   username?: string; | ||||
|   fullName?: string; | ||||
|   email: string; | ||||
|   authMethod?: AuthMethod & string; | ||||
|   admin?: boolean; | ||||
|   group?: string; | ||||
|   advanced?: boolean; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user