diff options
| author | winter | 2025-01-14 21:10:58 +0000 |
|---|---|---|
| committer | winter | 2025-01-14 21:10:58 +0000 |
| commit | 27d0d594695f77f3280f587cf5d7ae41317dc7c5 (patch) | |
| tree | 1809025d31be5212cd9788f31c423e4862d56b1b /routes | |
| parent | 18974962f2dd21e0246f9d66c9501e082bf1cf8f (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
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/auth.php | 2 |
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([ |
