-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (29 loc) · 968 Bytes
/
types.ts
File metadata and controls
34 lines (29 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { EmailAdapter, PluginsCommonOptions } from "adminforth";
export interface PluginOptions extends PluginsCommonOptions{
/**
* Field name in auth resource which contains email
*/
emailField: string;
/**
* From which email to send password reset emails
* e.g. no-reply@example.com
* Example.com must be allowed in provider to send emails
*/
sendFrom: string;
adapter: EmailAdapter;
/**
* To work properly, this plugin requires a virtual password field in auth resource.
* If you don't need it, you can add it and set showIn = []
* which will define any constraints which determine the password strength (regex, minLength).
* When user will enter passowrd, it will be validated against this field constraints
*/
passwordField: string;
pageInjection?: {
panelHeader?: string;
underInputs?: string;
}
/**
* Signup component order under login button
*/
loginPageComponentOrder?: number;
}