Commit Graph

93 Commits

Author SHA1 Message Date
Alex Holliday
73ac91c201 Generate random JWT on first account signup if one is not supplied by env 2024-09-30 10:08:37 +08:00
Alex Holliday
11b97ab3b4 add update settings method, remove all env var references possible 2024-09-26 14:37:11 +08:00
Alex Holliday
992bf099fa Add app settings model, routes, db ops, service, use settings for issueToken 2024-09-26 13:41:50 +08:00
Alex Holliday
edd9b5a6aa Update delete user to handle superadmin case 2024-09-26 11:50:50 +08:00
Alex Holliday
ffd193437e add comments 2024-09-25 15:14:22 +08:00
Alex Holliday
5dbd8378e2 require invite token to register except for initial registration 2024-09-25 15:12:07 +08:00
Alex Holliday
d2ab33492a Update auth endpoints 2024-09-24 13:56:58 +08:00
Alex Holliday
be0db003ad Add service name and method name to errors in authController 2024-09-15 09:25:35 +08:00
Alex Holliday
a89777333a Add route, controller, and DB methods for adding demo monitors 2024-09-11 11:03:39 +08:00
Alex Holliday
484231144d Add superadmin check 2024-09-06 10:56:07 -07:00
Alex Holliday
7526fe2a68 fix delete user method 2024-09-06 10:52:17 -07:00
Alex Holliday
a600ac30af Removed unused token code 2024-08-28 10:07:47 -07:00
Alex Holliday
ac37211e32 refactor invite to its own route and controller 2024-08-26 17:43:56 -07:00
Alex Holliday
20b2b089a4 Removed awaits for emails, added redirect if invite verify fails 2024-08-26 15:21:06 -07:00
Alex Holliday
c39eab49bd Add teams to a user when they are created 2024-08-26 13:29:11 -07:00
Alex Holliday
ef02bd8078 Check for superadmin as opposed to admin 2024-08-26 09:46:23 -07:00
Alex Holliday
4e430547ab Add error handling and logging to email service 2024-08-21 11:41:47 -07:00
Alex Holliday
85a82bb8c7 removed log statement 2024-08-18 22:07:36 -07:00
Alex Holliday
6d99002fd1 Finish refactoring auth slice, fixed several bugs 2024-08-17 20:23:34 -07:00
Alex Holliday
ae46527965 removed double login prevention 2024-08-15 11:39:45 -07:00
Alex Holliday
6cbca39e0f Refactored endpoint 2024-08-12 10:00:20 -07:00
Alex Holliday
0cc7751d2e Decoupled JWT from DB 2024-08-10 10:20:06 -07:00
Alex Holliday
9f4d23b1b4 Add logout route and controller, remove JWT from user on logout 2024-08-09 13:33:13 -07:00
Alex Holliday
9fe75c92dd Add check for JWT on login 2024-08-09 13:19:05 -07:00
Alex Holliday
5b2a05bc79 Save JWT to user on login 2024-08-09 13:14:20 -07:00
Alex Holliday
8fc069795c Merge remote-tracking branch 'upstream/fix/delete-user' into fix/delete-user 2024-08-02 11:39:11 -07:00
Alex Holliday
6c92dbe358 Delete pagespeed checks when user deleted 2024-08-02 11:38:38 -07:00
Alexander Holliday
a04ecad11f Update authController.js 2024-08-02 11:25:35 -07:00
Alex Holliday
a432aee3de Added empty query to request object 2024-08-02 11:24:15 -07:00
Alex Holliday
7d3bc7ee8a Delete notifcations when a user is deleted 2024-07-31 12:55:19 -07:00
Alex Holliday
5a1aaf5132 AuthController error handling, cleanup 2024-07-30 13:54:30 -07:00
Alex Holliday
608153b461 Commented out admin check, unsure as to whether or not more than one admin can exist 2024-07-23 14:30:27 -07:00
Alex Holliday
c77414f2d7 Added check to verify and fetch token from server 2024-07-23 12:27:23 -07:00
Alex Holliday
8e6cd0de71 Added verifyAdmin middleware. Implemented getAllUsers route 2024-07-22 11:49:22 -07:00
Alex Holliday
610d9228da Issue invite token and send invitation email on invite request 2024-07-21 20:35:23 -07:00
Alexander Holliday
2c5dc85f81 Merge pull request #396 from bluewave-labs/feat/emails
Removed sendgrid, use emailService for all emails.  Updated env vars,…
2024-07-19 16:39:43 -07:00
Alex Holliday
12e23cb156 Removed sendgrid, use emailService for all emails. Updated env vars, updated scripts 2024-07-19 15:41:06 -07:00
Alex Holliday
428e018aff Add invite endpoint, add validation to invit endpoint 2024-07-19 13:05:38 -07:00
Alex Holliday
4e56db368f Add invite route 2024-07-19 11:11:59 -07:00
Daniel Cojocea
cfc4590170 Added fix 2024-07-16 18:50:44 -04:00
Alex Holliday
f169809692 Fixed token issue 2024-07-16 14:40:37 -07:00
Alex Holliday
61d65f700e Add user to response 2024-07-16 14:23:42 -07:00
Alex Holliday
ce200eeb20 Reset password returns a token 2024-07-16 14:06:51 -07:00
Alex Holliday
b0cbea156c Add check for admin acount 2024-07-12 10:57:39 -07:00
Alex Holliday
5a6cbcd325 Implemented update password functionality 2024-07-10 11:51:27 -07:00
Alex Holliday
48ca591006 Added delete image profile functionality to update user 2024-07-09 10:23:22 -07:00
Alex Holliday
43bac259d7 Generate avatar image on register or update if an image is included 2024-07-08 10:26:56 -07:00
Alexander Holliday
ad26d1ba19 Update authController.js
Removed log statement
2024-07-06 22:19:02 -07:00
MuhammadKhalilzadeh
e7fb6a9e60 small changes 2024-07-06 09:03:09 +03:30
MuhammadKhalilzadeh
30a0cdd11c replace decode with verify 2024-07-06 08:48:58 +03:30