Use sessid and not token and fix get_username

This commit is contained in:
Alex Ling
2022-03-21 03:41:24 +00:00
parent c3736d222c
commit 0d52544617
4 changed files with 38 additions and 11 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ struct APIRouter
env.session.string "token", token
send_json env, {
"success" => true,
"token" => token,
"success" => true,
"session_id" => env.session.id,
}.to_json
rescue e
Logger.error e