upgraded to rocket v0.5-rc3
This commit is contained in:
parent
eab918d643
commit
7f4862ff30
7 changed files with 239 additions and 434 deletions
|
|
@ -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(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue