diff options
Diffstat (limited to 'config/persona.js')
-rw-r--r-- | config/persona.js | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/config/persona.js b/config/persona.js deleted file mode 100644 index c259a06..0000000 --- a/config/persona.js +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | /* | ||
2 | |-------------------------------------------------------------------------- | ||
3 | | Persona | ||
4 | |-------------------------------------------------------------------------- | ||
5 | | | ||
6 | | The persona is a simple and opinionated service to register, login and | ||
7 | | manage user account | ||
8 | | | ||
9 | */ | ||
10 | |||
11 | module.exports = { | ||
12 | /* | ||
13 | |-------------------------------------------------------------------------- | ||
14 | | Uids | ||
15 | |-------------------------------------------------------------------------- | ||
16 | | | ||
17 | | An array of fields, that can be used to indetify a user uniquely. During | ||
18 | | login and reset password, these fields be checked against the user | ||
19 | | input | ||
20 | | | ||
21 | */ | ||
22 | uids: ['email'], | ||
23 | |||
24 | /* | ||
25 | |-------------------------------------------------------------------------- | ||
26 | | Email field | ||
27 | |-------------------------------------------------------------------------- | ||
28 | | | ||
29 | | The name of the email field inside the database and the user payload. | ||
30 | | | ||
31 | */ | ||
32 | email: 'email', | ||
33 | |||
34 | /* | ||
35 | |-------------------------------------------------------------------------- | ||
36 | | Password | ||
37 | |-------------------------------------------------------------------------- | ||
38 | | | ||
39 | | The password field to be used for verifying and storing user password | ||
40 | | | ||
41 | */ | ||
42 | password: 'password', | ||
43 | |||
44 | /* | ||
45 | |-------------------------------------------------------------------------- | ||
46 | | New account state | ||
47 | |-------------------------------------------------------------------------- | ||
48 | | | ||
49 | | State of user when a new account is created | ||
50 | | | ||
51 | */ | ||
52 | newAccountState: 'pending', | ||
53 | |||
54 | /* | ||
55 | |-------------------------------------------------------------------------- | ||
56 | | Verified account state | ||
57 | |-------------------------------------------------------------------------- | ||
58 | | | ||
59 | | State of user after they verify their email address | ||
60 | | | ||
61 | */ | ||
62 | verifiedAccountState: 'active', | ||
63 | |||
64 | /* | ||
65 | |-------------------------------------------------------------------------- | ||
66 | | Model | ||
67 | |-------------------------------------------------------------------------- | ||
68 | | | ||
69 | | The model to be used for verifying and creating users | ||
70 | | | ||
71 | */ | ||
72 | model: 'App/Models/User', | ||
73 | |||
74 | /* | ||
75 | |-------------------------------------------------------------------------- | ||
76 | | Date Format | ||
77 | |-------------------------------------------------------------------------- | ||
78 | | | ||
79 | | The date format for the tokens table. It is required to calculate the | ||
80 | | expiry of a token. | ||
81 | | | ||
82 | */ | ||
83 | dateFormat: 'YYYY-MM-DD HH:mm:ss', | ||
84 | |||
85 | /* | ||
86 | |-------------------------------------------------------------------------- | ||
87 | | Validation messages | ||
88 | |-------------------------------------------------------------------------- | ||
89 | | | ||
90 | | An object of validation messages to be used when validation fails. | ||
91 | | | ||
92 | */ | ||
93 | validationMessages: () => ({}), | ||
94 | }; | ||