feat(gpodder): add create_user method to AuthStore

This commit is contained in:
Jef Roosens 2025-03-19 10:46:34 +01:00
parent 2a8917f21d
commit b44a47fefd
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
4 changed files with 40 additions and 7 deletions

View file

@ -14,9 +14,9 @@ pub struct User {
#[derive(Insertable)]
#[diesel(table_name = users)]
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]
pub struct NewUser {
pub username: String,
pub password_hash: String,
pub struct NewUser<'a> {
pub username: &'a str,
pub password_hash: &'a str,
}
// impl NewUser {