From 968f08a18b4dba60eba28ecd978fc86179e88da2 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Mon, 4 Apr 2016 22:10:56 +0200 Subject: [PATCH] Improve README with info to use and verify the default admin user --- README.md | 14 ++++++++++++++ README_ES.md | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/README.md b/README.md index 251a0f8e3..4d28ffcd8 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,20 @@ Run the tests with: bin/rspec ``` +You can use the default admin user from the seeds file: + + **user:** admin@madrid.es + **pass:** 12345678 + +But for some actions like voting, you will need to verify him, opening a console with `rails console` and then: +``` +a = User.first +a.verified_at = Date.today +a.level_two_verified_at = Date.today +a.residence_verified_at = Date.today +a.save +``` + ## Licence Code published under AFFERO GPL v3 (see [LICENSE-AGPLv3.txt](LICENSE-AGPLv3.txt)) diff --git a/README_ES.md b/README_ES.md index c3fd3cdff..c6e1867ec 100644 --- a/README_ES.md +++ b/README_ES.md @@ -55,6 +55,20 @@ Para ejecutar los tests: bin/rspec ``` +Puedes usar el usuario administrador por defecto del fichero seeds: + + **user:** admin@madrid.es + **pass:** 12345678 + +Pero para ciertas acciones, como apoyar, necesitarás verificarle, abre una consola con `rails console` y escribe: +``` +a = User.first +a.verified_at = Date.today +a.level_two_verified_at = Date.today +a.residence_verified_at = Date.today +a.save +``` + ### OAuth Para probar los servicios de autenticación mediante proveedores externos OAuth — en este momento Twitter, Facebook y Google —, necesitas crear una "aplicación" en cada una de las plataformas soportadas y configurar la *key* y el *secret* proporcionados en tu *secrets.yml*