Commit Graph

68 Commits

Author SHA1 Message Date
kikito
b5a4830871 Adds User.by_document scope 2015-09-30 20:53:57 +02:00
Juanjo Bazán
4a5dafd6e2 Merge pull request #551 from AyuntamientoMadrid/verification_tracking-500
Verification tracking
2015-09-28 20:04:15 +02:00
rgarcia
fbb5db8062 removes unnecessary address from users 2015-09-26 13:45:37 +02:00
rgarcia
e9e97daf46 displays failed census calls [#500] 2015-09-24 17:21:08 +02:00
Juanjo Bazán
7b9c050df2 adds has_many proposals to user 2015-09-23 17:09:41 +02:00
Enrique García
3e7a8e572e Merge pull request #483 from juandefelix/user-from-omniauth
Añadido :terms_of_service a User::first_or_create_for_oauth
2015-09-22 16:42:14 +02:00
kikito
77fbd2318e Makes blocking an author also block his proposals 2015-09-13 22:07:44 +02:00
juandefelix
e2fc128c16 passing validations by adding terms_of_service to attributes hash 2015-09-13 11:11:11 -05:00
kikito
5903ebe857 merges master and fix conflicts 2015-09-12 19:54:15 +02:00
kikito
08cf75fb95 Fixes bug: users were creating new organisations instead of updating existing ones 2015-09-12 19:30:26 +02:00
rgarcia
f2b917d486 adds proposal show 2015-09-12 12:30:20 +02:00
kikito
c399ddf18d Adds default values to limits when the db does not have them
This prevents errors when doing rake db:setup (the db has still not
been created but the rails models are loaded)
2015-09-11 11:32:29 +02:00
rgarcia
abc68dc868 refactors lock tries [#279] 2015-09-10 20:26:49 +02:00
kikito
8596df1ea8 merges master and fix conflicts 2015-09-10 18:09:19 +02:00
kikito
249aed42c4 Makes welcome screen work using a sessions controller 2015-09-10 17:41:37 +02:00
kikito
2d3015703d replaces constants by class methods + private functions. Fixes broken tests 2015-09-10 13:02:21 +02:00
kikito
5e7a5b57de Adds max lengths and validations in models 2015-09-09 18:32:36 +02:00
kikito
f46b17e19b Introduces User#block method 2015-09-08 19:08:47 +02:00
rgarcia
17ce1f9d07 adds terms of service to users 2015-09-07 01:00:43 +02:00
Juanjo Bazán
60089b8986 uses author info in comment/debate cache
author is already preloaded and we avoid expensive touching methods
2015-09-06 12:13:39 +02:00
rgarcia
cba83e6dd2 touches comments and debates after changes 2015-09-05 22:02:51 +02:00
Juanjo Bazán
3a7a8f13f5 validates uniqueness of username 😭 2015-09-04 23:15:41 +02:00
rgarcia
71aaef3805 sends devise emails with delayed_jobs 2015-09-03 22:59:25 +02:00
kikito
d0c7c7fe79 Adds User.comment_flags 2015-09-01 13:09:35 +02:00
kikito
c2faf0ef92 Merge Vote.in with Vote.for_debates 2015-09-01 13:08:32 +02:00
Juanjo Bazán
43b333b844 admins can search officials by name or email 2015-08-29 17:02:21 +02:00
kikito
3720551e78 fixes badly done merge 2015-08-28 13:41:51 +02:00
kikito
cb99996317 merges master and fix conflicts 2015-08-28 13:23:30 +02:00
kikito
9328e1401f Adds user admin capabilities and missing i18n entries 2015-08-28 12:00:18 +02:00
rgarcia
e83b423fd4 adds user verification extensions 2015-08-27 23:59:47 +02:00
rgarcia
f7d22f64b6 adds letter verification 2015-08-27 23:58:31 +02:00
kikito
909dfb4ce3 Several renamings
InappropiateFlag -> Flag
x.flag_as_inappropiate -> x.flag
x.undo_flag_as_inappropiate -> x.unflag
X.flagged_as_inappropiate -> x.flagged
flag-as-inappropiate-actions views & css -> flag-actions views & css
2015-08-27 10:48:49 +02:00
kikito
b9634cffab Adds User#for_render 2015-08-26 19:41:55 +02:00
David Gil
026db24b2a split long method into shorter, SRPer ones 2015-08-25 13:10:39 +02:00
David Gil
158e203936 adds omniauth basic authentication process with Twitter, including an intermediate step to ask the user for her email if not provided by the OAuth provider - Twitter, for instance 2015-08-24 20:24:54 +02:00
kikito
c88f7c1f30 merges master and fixes conflicts 2015-08-23 20:27:11 +02:00
Juanjo Bazán
b396a3b415 refactors user's registration
Simplifies process and fields: 

* In: username
* Out: first_name, last_name, phone, nickname, use_nickname?

Closes #213
2015-08-21 16:41:08 +02:00
kikito
ee881230ba merges master and fixes conflicts 2015-08-20 18:50:10 +02:00
kikito
8944327405 adds InappropiateFlag model with relations and specs 2015-08-20 16:03:00 +02:00
Juanjo Bazán
bd16e9345a adds paranoia to User 2015-08-20 13:16:37 +02:00
kikito
21c2fa2e3d Adds user.verified_organization? 2015-08-19 12:08:03 +02:00
Juanjo Bazán
ced2a05063 adds eager loading to avoid N+1 queries 2015-08-18 16:54:49 +02:00
kikito
b28f63b016 merges master and fixes conflicts 2015-08-18 09:35:13 +02:00
Juanjo Bazán
fabcb42328 adds edition/management of officials to admin zone 2015-08-17 17:04:29 +02:00
Juanjo Bazán
8390165ba8 adds official scope 2015-08-17 15:22:49 +02:00
Juanjo Bazán
e29ae67f31 adds methods to add/remove official position 2015-08-17 15:22:49 +02:00
Juanjo Bazán
d80fd8e468 adds official? method to User 2015-08-17 15:22:49 +02:00
kikito
8ca546a431 merges master and fixes conflicts 2015-08-17 02:40:11 +02:00
kikito
9343952d52 Adds User.organization_attributes 2015-08-17 01:16:07 +02:00
rgarcia
bea38226fe fixes spacing 2015-08-16 22:45:43 +02:00