From d33e1fe77c342a3e33f316738fd0ba252c6ccac0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 13 Jul 2020 13:36:59 +0200 Subject: [PATCH] Fix bad check --- src/controllers/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/routes.rs b/src/controllers/routes.rs index 664c6bd..ece0d33 100644 --- a/src/controllers/routes.rs +++ b/src/controllers/routes.rs @@ -67,7 +67,7 @@ pub fn get_routes() -> Vec { Route::get_without_login("/", Box::new(server_controller::main_index)), // Account controller - Route::post("/account/create", Box::new(account_controller::create)), + Route::post_without_login("/account/create", Box::new(account_controller::create)), Route::post_without_login("/account/login", Box::new(account_controller::login_user)), Route::post_without_login("/user/connectUSER", Box::new(account_controller::login_user)), Route::post("/account/logout", Box::new(account_controller::logout_user)),