This commit is contained in:
Greg Shuflin 2025-02-02 00:24:51 -08:00
parent 2e4d6938bb
commit 4af22db38d
2 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,32 @@
{
"db_name": "SQLite",
"query": "\n SELECT \n id as \"id: String\",\n username,\n password_hash\n FROM users\n WHERE username = ?\n ",
"describe": {
"columns": [
{
"name": "id: String",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "username",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "password_hash",
"ordinal": 2,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false
]
},
"hash": "f0f7cbbb6eb9867a0ca50d64cbc6935de981c6c952505dc57f6a86d515410472"
}

View File

@ -1,5 +1,3 @@
use bcrypt;
use chrono;
use rocket::http::{Cookie, CookieJar, Status}; use rocket::http::{Cookie, CookieJar, Status};
use rocket::serde::{json::Json, Deserialize, Serialize}; use rocket::serde::{json::Json, Deserialize, Serialize};
use rocket_db_pools::Connection; use rocket_db_pools::Connection;