aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-01-14 21:10:58 +0000
committerwinter2025-01-14 21:10:58 +0000
commit27d0d594695f77f3280f587cf5d7ae41317dc7c5 (patch)
tree1809025d31be5212cd9788f31c423e4862d56b1b
parent18974962f2dd21e0246f9d66c9501e082bf1cf8f (diff)
fix(?) a freaky bug in auth
it was giving "Not null violation" i think because i was trying to save the instance->auth before the instance itself existed
-rw-r--r--routes/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/auth.php b/routes/auth.php
index d64331e..b03ee52 100644
--- a/routes/auth.php
+++ b/routes/auth.php
@@ -26,7 +26,7 @@ Router::getInstance()->mount('/auth/main', function (array $args) {
}
$instance->auth->secret = random_printable_bytes();
- $instance->auth->save();
+ $instance->save();
// TODO: schedule a job to throw away the secret after some time if it's not used?
$data = http_build_query([