Commit Graph

41 Commits

Author SHA1 Message Date
Keith Stevens 07b58d4021 Switching username generator library to be less explicit (#1351) 2023-02-08 18:32:25 +01:00
Keith Stevens ef5b9d7757 Fixing the way we generate the backenduser object during jwt creation (#1090) 2023-02-04 08:18:19 +01:00
AbdBarho 86eac87c19 Add ToS/License Agreement to Website (#1080)
* add new apis to oasst client

* add tos handler

* Add ToS to Dashboard

* use Provider for ToS

* simplify provider

* fix error

* Inject into JWT

* primitive error handling

* update comment

* address review
2023-02-03 20:53:20 +01:00
notmd 0b9b8ed927 allow to enable/disable email sigin via env variable 2023-02-02 00:29:46 +07:00
notmd f825ae54fb try to fix test 2023-01-30 02:15:34 +07:00
notmd c05c0d88a1 remove debug code 2023-01-30 02:00:45 +07:00
notmd 0ab2fd5c5c try fix test 2023-01-30 01:00:12 +07:00
notmd e3f496df81 try to fix test 2023-01-29 23:44:30 +07:00
notmd 599d70962e Merge branch 'main' into 911_sigin_captcha 2023-01-29 23:34:04 +07:00
notmd fb26a52c2c allow to enable/disable email signin captcha via env variable 2023-01-29 23:28:26 +07:00
notmd f75d02c33a use signIn callback instead middleware 2023-01-29 22:59:45 +07:00
Keith Stevens 75c4f90db3 Reverting some uneccesary changes 2023-01-28 17:58:52 +09:00
Keith Stevens ec5bdef719 Not sure this will work 2023-01-22 21:36:52 +09:00
Keith Stevens a5d59339f9 Deleting some function arguments used for debugging 2023-01-18 15:33:27 +09:00
Keith Stevens a15481b03d Cleaning up the username api route and ensuring the users name is fresh 2023-01-18 14:41:29 +09:00
Keith Stevens 0a36e459d7 Guarantee all users get a name (#800)
* Guarantee all users get a name and it is used when talking to the backend

* Small code cleanup
2023-01-17 21:12:48 +01:00
notmd 510c718f2b allow to select role when sigin in debug mode 2023-01-16 11:49:53 +07:00
notmd 8028693e3b use useSWR data instead calling setState 2023-01-16 10:09:54 +07:00
AbdBarho 7fabe39174 Fix missing display_name for debug users 2023-01-15 10:07:02 +01:00
Keith Stevens b02429c1f7 Tag in the user table when they are new and include it in the user session 2023-01-14 18:55:28 +09:00
Keith Stevens 7e517db934 Fixing the type errors when updating the jwt and session with a role 2023-01-06 20:19:02 +09:00
Keith Stevens 498daef9d3 Creating a role field for Users and seeding it everytime a user logs in based on a shortlist 2023-01-06 20:01:02 +09:00
Keith Stevens 41e509405b Merge pull request #199 from croumegous/fix-lint-build
Fix linter warnings
2023-01-01 10:46:21 +09:00
croumegous a0b900559c chore: eslint plugins to sort import and remove unused import automatically 2022-12-31 18:22:06 +01:00
Yannic Kilcher 4a4cf3c3a6 saving user to the dabase when using the debug credentials provider 2022-12-31 17:32:02 +01:00
Yannic Kilcher 0acacf33fe Merge branch 'main' into add-debug-skip-password-env 2022-12-29 13:34:28 +01:00
Yannic Kilcher cbcbe8d708 added environment variable DEBUG_LOGIN to display debug credentials provider even in production mode 2022-12-28 17:33:33 +01:00
rsandb 5e27695c47 Merge remote-tracking branch 'upstream/main' 2022-12-27 17:29:11 -06:00
rsandb de869033bf updated avatar component name, added ability to change username (only works server side for now), updated signin page, updated Footer
Still working on the account settings page but didn't want to get behind on commits.
2022-12-27 13:00:32 -06:00
Yannic Kilcher d8a5937b9a removed boolean dependency 2022-12-27 13:59:00 +01:00
Yannic Kilcher 2a814b5b0b Update website/src/pages/api/auth/[...nextauth].ts
Co-authored-by: Ville Lahdenvuo <tuhoojabotti@gmail.com>
2022-12-27 13:57:55 +01:00
Yannic Kilcher d9dec84818 using debug credentials provider whenever development mode is active 2022-12-27 00:14:50 +01:00
Yannic Kilcher 5125e84055 created debug credentials provider 2022-12-26 16:13:43 +01:00
Yannic Kilcher 6452bb860d moved bot to discord-bot
added playbook to deploy dev machine

added playbook to deploy dev machine

added next.js font module, updated fonts, updated login page

replaced logos, changed logo on login and header

added 404 and email confirmation pages, changed discord and github buttons to show conditionally

also removed unused imports, fixed one spelling error, and minor styling changes

Quick format to the authenticated user page, updated header with user profile, styling updates

fixed html encoding

added checkout for release

re-vamped release config and ports
2022-12-25 11:35:54 +01:00
rsandb b75d330521 added 404 and email confirmation pages, changed discord and github buttons to show conditionally
also removed unused imports, fixed one spelling error, and minor styling changes
2022-12-24 11:40:01 -06:00
rsandb 5f12baa440 added next.js font module, updated fonts, updated login page 2022-12-23 16:10:59 -06:00
Keith Stevens c056a31d2f Ensuring the website can be built and deployed fully in docker. This includes an end to end docker-compose configuration as a simple demonstration. 2022-12-20 20:28:53 +09:00
Keith Stevens 2eda464fec Dropping the fixed verification token until that's more stable 2022-12-20 16:34:19 +09:00
Keith Stevens 29246cf756 Dropping a console log that was left for debugging 2022-12-20 16:22:25 +09:00
Keith Stevens 8e1c280bd7 Adding another service in the frontend-dev docker compose configuration to make it easier to do email based login. Also adding env variables that work by default with the docker services 2022-12-20 15:55:14 +09:00
Keith Stevens 2aacc542d3 Integrate the new UI pages with the working backend for the rate_summary task. This also migrates some pages to properly link up authorization flows. Some cruft is still in 2022-12-19 15:12:45 +09:00