diff --git a/README.md b/README.md index 9582baa02..a5bb81ff8 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,22 @@ 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: +``` +User.first.update_attributes(verified_at: Date.today, residence_verified_at: Date.today, level_two_verified_at: Date.today) +``` + +### OAuth + +To test authentication services with external OAuth suppliers - right now Twitter, Facebook and Google - you'll need to create an "application" in each of the supported platforms and set the *key* and *secret* provided in your *secrets.yml* + +In the case of Google, verify that the APIs *Contacts API* and *Google+ API* are enabled for the application. + ## 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 654272d60..96772ba77 100644 --- a/README_ES.md +++ b/README_ES.md @@ -55,6 +55,16 @@ 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: +``` +User.first.update_attributes(verified_at: Date.today, residence_verified_at: Date.today, level_two_verified_at: Date.today) +``` + ### 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*