Thomas Ruoff
899bc86967
use SITE_URL via helper instead of custom env var
2026-03-03 21:57:48 +01:00
Thomas Ruoff
d63ded8c6a
migrate auth from next-auth to better-auth with magic link support
...
Replace next-auth with better-auth, adding magic link email login as
the primary auth method and GitHub OAuth as an optional social provider.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-03 21:19:37 +01:00
Thomas Ruoff
9c8ebbbbb5
update nodemailer and overwriter vor next-auth
2026-02-12 21:29:57 +01:00
Thomas Ruoff
d5ac2f09dc
remove all bill related stuff
2025-03-26 23:14:35 +01:00
Thomas Ruoff
32818b7492
update mongoose to 5.8.3 (lots of types changes)
2024-09-10 23:21:24 +02:00
Thomas Ruoff
cd99000a57
follow guidelines
2023-11-07 22:06:14 +01:00
Thomas Ruoff
7f0aa5fec6
use uberspace for all mails
2023-10-28 22:45:40 +02:00
Thomas Ruoff
abd6ac7a8d
well, need to wait until mail is send or function is terminated
2023-01-26 15:42:12 +01:00
Thomas Ruoff
42157e8048
fix email signin?
2022-12-26 00:36:54 +01:00
Thomas Ruoff
28b3b03279
use nodemailer instead of sendgrid
2022-12-22 23:38:32 +01:00
Thomas Ruoff
2f4cd1e50d
remove mail trigger
2022-07-06 23:14:24 +02:00
Thomas Ruoff
3a4a4ad0b0
send response last
2022-07-06 22:08:56 +02:00
Thomas Ruoff
f9e0a33f3b
more tweaking
2022-06-23 23:57:47 +02:00
Thomas Ruoff
634d460df1
add trigger route
2022-06-23 23:52:20 +02:00
Thomas Ruoff
8bb93b023a
fix log msg
2022-06-23 23:16:18 +02:00
Thomas Ruoff
00002a62d2
improve logging?
2022-06-23 22:43:00 +02:00
Thomas Ruoff
5691b595ad
Revert "use atlas integration env var"
...
This reverts commit ce01da812d .
2022-06-21 22:57:23 +02:00
Thomas Ruoff
ce01da812d
use atlas integration env var
2022-06-21 22:07:43 +02:00
Thomas Ruoff
7f13a0063f
also add mail when user cancels
2022-04-08 00:04:37 +02:00
Thomas Ruoff
0cdee14d18
fix sending reject and confirmation mails
2022-04-08 00:04:37 +02:00
Thomas Ruoff
3c4f0efdc2
fix all the formatting
2022-04-02 00:42:25 +02:00
Thomas Ruoff
56478632e5
Tighten down sign in
...
Email: only from ADMIN_EMAIL
Github: only user tomru
2022-04-02 00:36:58 +02:00
Thomas Ruoff
cd58a535cb
remove unused var and import
2022-03-31 23:03:05 +02:00
Thomas Ruoff
da6e698ff9
set data is handled in patch method already
2022-03-31 22:58:08 +02:00
Thomas Ruoff
7697ee80ca
add error when patching failed
2022-03-17 23:23:16 +01:00
Thomas Ruoff
d9cd2af314
extract patch booking to db
2022-03-14 23:55:49 +01:00
Thomas Ruoff
ef7f80fd92
address breaking changes
2022-03-14 23:55:49 +01:00
Thomas Ruoff
36f8719531
prettier all the things
2022-03-02 00:02:10 +01:00
Thomas Ruoff
f1ff6b0a41
cache mongo client - not sure if it makes a diff 🤷
2021-12-08 23:51:09 +01:00
Thomas Ruoff
73bb989ca7
fix db conn for nextauth
2021-12-08 23:51:09 +01:00
Thomas Ruoff
893896cf31
adopt to mongodb adapter changes
2021-12-08 23:51:09 +01:00
Thomas Ruoff
3d8662b54d
use nextauth secret from env
2021-11-21 01:13:42 +01:00
Thomas Ruoff
8dd0c7b9b2
add mongo adapter via mongoose
2021-10-27 00:49:12 +02:00
Thomas Ruoff
0e84945ab4
rip out all old auth data
2021-10-06 00:32:30 +02:00
Thomas Ruoff
b257bc8258
move to next-auth
2021-10-06 00:32:30 +02:00
Thomas Ruoff
718ed41f8d
rename api end url to bookings
2021-06-21 23:41:38 +02:00
Thomas Ruoff
9f3b6bb2e1
remover booker, that's overdosed
...
It also brings the problem of consolidating bookers over multiple
bookings. The amount of data is not justifying having it in an own
entity
2021-06-21 23:21:23 +02:00
Thomas Ruoff
9024310ce0
move login and add logout
2021-06-16 23:36:28 +02:00
Thomas Ruoff
b6a1e45fcf
one api endpoint for admin/non-admin
2021-06-16 23:36:28 +02:00
Thomas Ruoff
9fe3fffb86
infer return type of functions
2021-03-22 23:14:48 +01:00
Thomas Ruoff
a5f60c1114
log sending booking received mail
2020-11-10 22:48:15 +01:00
Thomas Ruoff
195da65cd9
remove *Document intefaces from FE code
2020-11-06 23:37:04 +01:00
Thomas Ruoff
7ee9803adc
make isAdminSession usable by api routes
2020-11-04 00:33:35 +01:00
Thomas Ruoff
1dfd1f1f8b
add a proper login page
2020-11-04 00:14:29 +01:00
Thomas Ruoff
b283ffe476
send mail when booking is confirmed or rejected
2020-11-03 21:50:12 +01:00
Thomas Ruoff
cb9932240d
add confirm and reject buttons to adming/booking
2020-11-02 23:25:00 +01:00
Thomas Ruoff
19c8bc7be2
move admin api to /admin
2020-11-02 22:44:27 +01:00
Thomas Ruoff
ecc3715f27
fix allow header for routes
2020-11-02 22:05:32 +01:00
Thomas Ruoff
e2aab12cdf
add email to customer as well
2020-10-26 23:43:39 +01:00
Thomas Ruoff
c55f8f8b3a
Admin page for bill wit iron-session ( #13 )
2020-10-22 00:40:09 +02:00