Commit a04bab5
authored
feat: Add registration page (#286)
* feat: Add registration page
- Added a html template of the signup page
- Added a href button to the signup page from the login page
- Added the form of the signup to the backend and db
* feat: Add registration page
- Added confirmation email system
- Added some tests
* Fixed sourcey-ai issues
* fixed resend email confirmation
* Added translations
* Removed unused module
* Changed versions of requirements
* Changed versions of requirements
* Changed versions of requirements
* Changed versions of requirements
* Changed versions of requirements
* Changed versions of requirements
* Removed versions change
* Fixed tests
* Fixed a test
* Fixed test and updated client fixture
* Added tests for coverage
* Added a test for signature expired
* Removed unnecessary condition
* Added role attribute
* - Fixed babel translations
- Added few _('...') instead of some english phrases
- Moved out the auth logic into models/users
- Added MAIL_DEFAULT_SENDER variable to the config
- Changed the retrieve_salt method
* Fixed a test to check bad signature token
* Fixed a test
* Moved out the HASHED_PASSWORD in order to be global variable, and added an error message to the UnhashedPasswordError
* Added a configuration of registration open, and a test
* Added flask limits and fixed some messages
* Removed formats from strings1 parent bed689c commit a04bab5
File tree
21 files changed
+648
-66
lines changed- lms
- lmsdb
- lmsweb
- forms
- tools
- translations/en/LC_MESSAGES
- models
- static
- templates
- tests
- samples
21 files changed
+648
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
104 | 114 | | |
105 | 115 | | |
| |||
407 | 417 | | |
408 | 418 | | |
409 | 419 | | |
410 | | - | |
411 | | - | |
| 420 | + | |
412 | 421 | | |
413 | 422 | | |
414 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
13 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
48 | 73 | | |
49 | 74 | | |
50 | 75 | | |
51 | 76 | | |
52 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
53 | 96 | | |
54 | 97 | | |
55 | 98 | | |
56 | 99 | | |
57 | | - | |
| 100 | + | |
58 | 101 | | |
59 | 102 | | |
60 | 103 | | |
61 | 104 | | |
62 | | - | |
| 105 | + | |
63 | 106 | | |
64 | 107 | | |
65 | 108 | | |
66 | 109 | | |
67 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
68 | 121 | | |
69 | 122 | | |
70 | 123 | | |
| |||
84 | 137 | | |
85 | 138 | | |
86 | 139 | | |
87 | | - | |
| 140 | + | |
88 | 141 | | |
89 | 142 | | |
90 | 143 | | |
| |||
108 | 161 | | |
109 | 162 | | |
110 | 163 | | |
111 | | - | |
| 164 | + | |
112 | 165 | | |
113 | 166 | | |
114 | 167 | | |
115 | 168 | | |
116 | 169 | | |
117 | 170 | | |
118 | 171 | | |
119 | | - | |
| 172 | + | |
120 | 173 | | |
121 | 174 | | |
122 | 175 | | |
123 | | - | |
| 176 | + | |
124 | 177 | | |
125 | 178 | | |
126 | 179 | | |
127 | | - | |
| 180 | + | |
128 | 181 | | |
129 | 182 | | |
130 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
131 | 188 | | |
132 | 189 | | |
133 | 190 | | |
| |||
164 | 221 | | |
165 | 222 | | |
166 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
167 | 250 | | |
168 | 251 | | |
169 | 252 | | |
| |||
256 | 339 | | |
257 | 340 | | |
258 | 341 | | |
259 | | - | |
| 342 | + | |
260 | 343 | | |
261 | 344 | | |
262 | 345 | | |
263 | | - | |
| 346 | + | |
264 | 347 | | |
265 | 348 | | |
266 | 349 | | |
267 | | - | |
| 350 | + | |
268 | 351 | | |
269 | 352 | | |
270 | 353 | | |
271 | | - | |
| 354 | + | |
272 | 355 | | |
273 | 356 | | |
274 | 357 | | |
275 | | - | |
| 358 | + | |
276 | 359 | | |
277 | 360 | | |
278 | 361 | | |
| |||
332 | 415 | | |
333 | 416 | | |
334 | 417 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 418 | | |
340 | 419 | | |
341 | 420 | | |
| |||
0 commit comments