upgraded to rocket v0.5-rc3

This commit is contained in:
Philippe Loctaux 2023-03-24 22:56:01 +01:00
parent eab918d643
commit 7f4862ff30
7 changed files with 239 additions and 434 deletions

View file

@ -26,7 +26,7 @@ impl RefreshToken {
pub async fn insert(
conn: impl SqliteExecutor<'_>,
token: &str,
ip_address: &str,
ip_address: String,
user: &UserID,
duration_days: i64,
) -> Result<Option<()>, Error> {
@ -35,7 +35,7 @@ impl RefreshToken {
Ok(DatabaseRefreshTokens::insert(
conn,
token,
ip_address,
ip_address.as_str(),
user.as_ref(),
expires_at.timestamp(),
)