Commit 33c8dc8
feat: Add change password and forgot my password (#299)
* 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
* feat: Add change password page
- Added tests
- Added a ref link from user's page
- Added the form background
- Added the template and the css style
* Added a comma
* Added a comma
* - Moved the send mails methods into utils/mail.py
- Added _invalid_tries to session in order to limit the tries of invalid change password
- Added INVALID_TRIES variable to the config
* Added a test for invalid_tries change password
* Added a test for invalid_tries change password
* Added a test for invalid_tries change password
* - Added forgot my password template and css style
- Added a link from login page
- Added in the backend the forms
- Added mails to reset password
- Added tests
* Fixed some changes requested
* Fixed translations
* Fixed some issues
* Changed session token to be uuid
* Added a test and changed get_or_none to get
* fix: check test send mail
* Added skipif for sending mail test and split a test function
* Changed skipif condition and split a test
* fix: test mails
* Removed unused import
* Changed fixture to be session instead of class scope
* changed some code style and changed uuidfield
* Add migration
* feat: add migration
* fix: bool expression
* Changed html name files
* Removed unused imports and moved out to conftest some client.post's
* Removed TestResponse objects
Co-authored-by: Yam Mesicka <yammesicka@gmail.com>1 parent ad7f8d0 commit 33c8dc8
File tree
23 files changed
+722
-207
lines changed- lms
- lmsdb
- lmsweb
- forms
- tools
- translations/en/LC_MESSAGES
- models
- static
- templates
- utils
- tests
23 files changed
+722
-207
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
235 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
236 | 249 | | |
237 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
238 | 255 | | |
239 | 256 | | |
240 | 257 | | |
241 | 258 | | |
242 | 259 | | |
243 | 260 | | |
244 | 261 | | |
245 | | - | |
246 | 262 | | |
247 | 263 | | |
248 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| |||
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| 209 | + | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 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 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments