From c5a1b3d1ee8548b05f18515fac0b0716766561e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Fri, 15 Apr 2016 11:02:15 +0200 Subject: [PATCH] adds info to readme about the seed verified user --- README.md | 8 ++++---- README_ES.md | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a5bb81ff8..2cdaddb19 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,10 @@ 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: -``` -User.first.update_attributes(verified_at: Date.today, residence_verified_at: Date.today, level_two_verified_at: Date.today) -``` +But for some actions like voting, you will need a verified user, the seeds file also includes one: + + **user:** verified@madrid.es + **pass:** 12345678 ### OAuth diff --git a/README_ES.md b/README_ES.md index 96772ba77..e0392bc51 100644 --- a/README_ES.md +++ b/README_ES.md @@ -60,10 +60,11 @@ 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: -``` -User.first.update_attributes(verified_at: Date.today, residence_verified_at: Date.today, level_two_verified_at: Date.today) -``` +Pero para ciertas acciones, como apoyar, necesitarás un usuario verificado, el fichero seeds proporciona uno: + + **user:** verified@madrid.es + **pass:** 12345678 + ### OAuth