diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index 7a06098..477f7f5 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -28,8 +28,8 @@ use crate::utils::user_data_utils::user_data_path; /// Create a new account pub fn create(new_account: &NewAccount) -> ResultBoxError { database::InsertQuery::new(USERS_TABLE) - .add_str("nom", &new_account.first_name) - .add_str("prenom", &new_account.last_name) + .add_str("prenom", &new_account.first_name) + .add_str("nom", &new_account.last_name) .add_str("date_creation", &mysql_date()) .add_str("mail", &new_account.email) .add_str("password", &hash_password(&new_account.password)?)