1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:59:28 +00:00
Commit Graph

77 Commits

Author SHA1 Message Date
34c6478699 Added new validation type 'date' to validator module 2022-03-08 00:00:52 +00:00
be08c58afa Fixed failing DatabaseConnectionPool tests 2022-03-07 23:46:30 +00:00
518e482ee7 Added Account.getTestTemplates method 2022-03-07 14:46:00 +00:00
9dd5c1dd32 Added Subject.getAllSubjects method 2022-03-07 14:45:33 +00:00
e19afeff73 Add Test.hasAccess for user validation 2022-03-06 20:42:58 +00:00
ec87a77dd2 Added Class.hasAccess to validate user input and add security 2022-03-04 22:39:56 +00:00
c9e826d016 Lint cleanup with new rules 2022-03-03 09:21:43 +00:00
9c66a50973 Add User.shortName 2022-03-03 01:58:47 +00:00
dd5778e872 Class should fetch class members too 2022-03-03 01:58:26 +00:00
63e6fde021 Generalise getTeacher to getUser 2022-03-03 01:57:49 +00:00
b214c7858a Added Class.getTests() 2022-02-28 11:49:02 +00:00
6ed7f09ce8 Lint cleanup 2022-02-28 09:16:06 +00:00
f299ecd727 Close database connection when finished with it 2022-02-25 19:52:46 +00:00
0ac1b1bb73 Fixed bug where handlebars can't access getters 2022-02-25 19:52:46 +00:00
28f8b8dae8 Add ability to extract TestTemplate from Test 2022-02-25 19:52:46 +00:00
85d25439fd Add ability to extract Class from Test 2022-02-25 19:52:46 +00:00
7f6b1cfb97 Add ability to extract creator Account from TestTemplate 2022-02-25 19:52:45 +00:00
67e34e2c93 Add ability to extract teachers Accounts from Class 2022-02-25 19:52:45 +00:00
d5bc5a9619 Add ability to extract Subject from Class 2022-02-25 19:52:45 +00:00
6ee3e90f9b Added Subject constructor 2022-02-25 19:52:45 +00:00
c6433f4594 Fix bug where tests on the current day weren't selected in recent or upcoming filters 2022-02-25 16:48:11 +00:00
8063cad2f4 Don't fetch unneccasary records from db 2022-02-25 15:52:56 +00:00
73bf0f699c Added User.getClasses 2022-02-25 15:52:33 +00:00
f6efa74a89 Added Class constructor 2022-02-25 15:52:07 +00:00
57af81cc98 Consistent SQL query formatting 2022-02-25 14:44:35 +00:00
440587b57e Removed unneccasary Student method 2022-02-25 13:18:06 +00:00
98e7b125c4 Added User.getTests 2022-02-25 13:17:07 +00:00
f16cab9f8b Added Test constructor 2022-02-25 13:16:34 +00:00
48176a28fe Added TestDate class to help format dates correctly 2022-02-25 13:15:36 +00:00
747d7f8e77 Added TestTemplate constructor 2022-02-25 13:11:41 +00:00
f0e865803e User constructor should return the correct child class is type is unspecified 2022-02-25 13:03:26 +00:00
6c843731d1 Added Parent constructor and creator 2022-02-25 11:26:02 +00:00
66a40cffce Added Student constructor and creator 2022-02-25 11:25:49 +00:00
72b7a6fdb4 Fixed bug where User class assumed that it was an Account 2022-02-25 11:25:13 +00:00
bcdc79e897 Refactored sanitisation function to allow more expandability and removed the need to clone the body 2022-02-19 21:11:16 +00:00
6cd2d9db4a Validator should add non-validated fields to the returned map too 2022-02-14 21:29:01 +00:00
f62187bf60 Remove unneccasary method User.getPasswordReset 2022-02-14 21:10:44 +00:00
bf8b99a0d1 Send a password reset email 2022-02-14 20:55:20 +00:00
12090cefe8 Added method to return a nodemailer message object from EmailBuilder 2022-02-14 20:55:00 +00:00
7bd34f3312 Fix error when otherNames is undefined 2022-02-14 20:54:19 +00:00
c85166a7a0 Make EmailBuilder fields private 2022-02-14 20:53:46 +00:00
1c680b076a Added functionality to Emailer to create nodemailer transport in preparation for email sending 2022-02-14 20:24:43 +00:00
3177653d60 Added Emailer class to send emails 2022-02-14 17:27:41 +00:00
def29705c6 Added documentation for EmailBuilder class 2022-02-14 17:05:44 +00:00
1ccc25f185 Added new EmailBuilder class 2022-02-14 15:02:37 +00:00
6055a1e797 Implemented User getter for fullName 2022-02-14 15:01:33 +00:00
b955609399 Implemented User.changePassword 2022-02-14 10:29:58 +00:00
e38135cb6c Implemented User getter 2022-02-14 10:29:35 +00:00
53ac018d40 Rewrite PasswordReset constructor to check for token in record 2022-02-14 10:28:16 +00:00
fc10725862 Implemented User generatePasswordReset 2022-02-14 00:23:58 +00:00