From af327fc0fba5753d528b8d2aaa1ca6b74d2a5cbe Mon Sep 17 00:00:00 2001 From: Xavier J Date: Mon, 30 May 2016 09:50:18 +0200 Subject: [PATCH] [TEMPORARY] No random password --- app/controllers/admin/gestionnaires_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/gestionnaires_controller.rb b/app/controllers/admin/gestionnaires_controller.rb index e3ddc27a6..263c2d038 100644 --- a/app/controllers/admin/gestionnaires_controller.rb +++ b/app/controllers/admin/gestionnaires_controller.rb @@ -33,7 +33,7 @@ class Admin::GestionnairesController < AdminController def create_gestionnaire_params params.require(:gestionnaire).permit(:email) - .merge(password: SecureRandom.hex(5)) + .merge(password: 'TPS2016BOOSTCAMP') #SecureRandom.hex(5) .merge(administrateurs: [current_administrateur]) end