diff --git a/migrations/2020-10-14-203215_create_users/up.sql b/migrations/2020-10-14-203215_create_users/up.sql index ad59c56..6e0d8d9 100644 --- a/migrations/2020-10-14-203215_create_users/up.sql +++ b/migrations/2020-10-14-203215_create_users/up.sql @@ -3,5 +3,5 @@ CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR NOT NULL, - password VARCHAR NOT NULL + encrypted_password VARCHAR NOT NULL ); diff --git a/src/models.rs b/src/models.rs index 4aaa754..41ed8ea 100644 --- a/src/models.rs +++ b/src/models.rs @@ -2,5 +2,5 @@ pub struct User { pub id: i32, pub username: String, - pub password: String, + pub encrypted_password: String, } diff --git a/src/schema.rs b/src/schema.rs index fb47897..68465d8 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -2,6 +2,6 @@ table! { users (id) { id -> Int4, username -> Varchar, - password -> Varchar, + encrypted_password -> Varchar, } } diff --git a/templates/index.html.hbs b/templates/index.html.hbs index 2a10725..8c6a409 100644 --- a/templates/index.html.hbs +++ b/templates/index.html.hbs @@ -4,7 +4,7 @@