feat(gpodder): add create_user method to AuthStore
This commit is contained in:
parent
2a8917f21d
commit
b44a47fefd
4 changed files with 40 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue