Commit Graph

356 Commits

Author SHA1 Message Date
rgarcia
e08ed41e98 fixes conflicts with master 2015-10-14 15:48:55 +02:00
kikito
72b6126f30 uses the month (%m) instead of the minute (%M) in the proposal code 2015-10-14 12:40:26 +02:00
kikito
050971c459 modifies email controllers: management email makes users level two verified, and sets their document number permanently. Fixes failing test 2015-10-13 17:20:39 +02:00
kikito
8d82ca05c0 Allows manually verifying users to level 2 without specifying a phone 2015-10-13 17:14:00 +02:00
rgarcia
c07bf7e212 removes unnecessary attr_accessor 2015-10-12 14:12:03 +02:00
rgarcia
f55c3974aa refactors managed user info into management layout 2015-10-12 14:05:06 +02:00
rgarcia
5feef066dc adds managed user to session 2015-10-11 16:56:16 +02:00
kikito
99bb082555 refactors management/validations/email validations 2015-10-09 13:47:25 +02:00
kikito
f7ac7a526d merge with master 2015-10-08 15:26:33 +02:00
kikito
d351daedd4 Adds document_number-related constraints to User 2015-10-08 15:19:11 +02:00
kikito
b6aaad87af Adds a user controller for management 2015-10-07 20:18:17 +02:00
kikito
131982c8e9 Moves translations from one namespace to another 2015-10-07 19:43:34 +02:00
kikito
d5d5e683d1 Refactors account_info partial 2015-10-07 19:39:59 +02:00
juandefelix
7db2fecbb1 added validation for tag count 2015-10-03 11:54:48 -05:00
kikito
9ddc9c57b7 Do not show the welcome screen to administrators 2015-10-02 18:44:28 +02:00
kikito
3ed5c269e4 Adds unconfirmed_document_number into email verifications
It also makes sure that when a user is considered level 3 is also
considered residence-verified.
2015-10-02 18:44:15 +02:00
kikito
9e05a3283c Includes the document number and type in the verification email 2015-10-02 18:40:24 +02:00
kikito
75721ab186 Implements Verification::Management::Email#save + refactors 2015-10-02 13:20:44 +02:00
kikito
1fe850b6dc Renaming of management validations 2015-10-01 19:27:04 +02:00
Juanjo Bazán
742ea1bd2e adds management/sessions controller 2015-10-01 17:53:15 +02:00
kikito
4bb02ff564 Separate into two concerns: onsite verification + onsite verification emails 2015-10-01 14:18:11 +02:00
kikito
78d6f5e53a Adds a half-done implementation of on_site_verifications
Things missing:
* Implement models/verification/on_site#send_verification_email
* Implement the “create new user” path
* Tests
2015-09-30 21:00:42 +02:00
kikito
b5a4830871 Adds User.by_document scope 2015-09-30 20:53:57 +02:00
Enrique García
94e747d4e1 Merge pull request #576 from AyuntamientoMadrid/manager-model
creates Manager
2015-09-30 12:13:03 +02:00
Juanjo Bazán
b921c67676 creates Manager 2015-09-30 11:49:28 +02:00
kikito
cc1a69c7a5 fixes error in census_api and refactors constructor 2015-09-30 10:56:57 +02:00
kikito
1c372328d9 Refactor in residence verification + census api
Needed for a new census api verification using only the document type
(no date of birth and no postal code)
2015-09-29 20:18:52 +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
Raimond Garcia
d541db8acf Merge pull request #564 from AyuntamientoMadrid/ability-split
Splits ability.rb and specs into several smaller files
2015-09-28 17:36:10 +02:00
Enrique García
a050dfd1c1 Merge pull request #559 from AyuntamientoMadrid/address
removes unnecessary address from users
2015-09-28 17:35:48 +02:00
kikito
e76d2b9ad6 fixes travis 2015-09-28 17:19:53 +02:00
kikito
636e6bd479 second attempt at fixing travis 2015-09-28 15:49:28 +02:00
kikito
65ec39ebb3 attempts to fix failing travis 2015-09-28 15:22:15 +02:00
rgarcia
6832b0e404 makes spaces consistent 2015-09-28 15:08:08 +02:00
rgarcia
7b9f2c9695 refactors sanitizable behaviour 2015-09-28 15:06:22 +02:00
rgarcia
590c0b9242 refactors length validations 2015-09-28 14:48:53 +02:00
kikito
82af488ce3 Splits ability.rb and specs into several smaller files
I'm doing this in preparation for the "Manager" ability, which will
require even more refactors of the abilities (for example,
manager can not modify their own account)
2015-09-28 13:51:42 +02:00
rgarcia
6d5d60c0df refactors conflictable behaviour 2015-09-28 13:38:48 +02:00
rgarcia
8e42055ece refactors taggable behaviour 2015-09-28 13:33:57 +02:00
rgarcia
fbb5db8062 removes unnecessary address from users 2015-09-26 13:45:37 +02:00
rgarcia
d39fc60f92 fixes unverified user's scope 2015-09-26 13:08:09 +02:00
rgarcia
c367bc264c refactors pending verification step view [#500] 2015-09-24 17:21:10 +02:00
rgarcia
8c56e28cce improves incomplete verification scope [#500] 2015-09-24 17:21:09 +02:00
rgarcia
1a80752c04 adds incomplete verification scope [#500] 2015-09-24 17:21:09 +02:00
rgarcia
e9e97daf46 displays failed census calls [#500] 2015-09-24 17:21:08 +02:00
Juanjo Bazán
5617f9869e Merge pull request #545 from AyuntamientoMadrid/verification_postal_codes
Verification postal codes
2015-09-24 13:09:14 +02:00
Juanjo Bazán
b979f871dd removes unused method 2015-09-24 12:42:21 +02:00
rgarcia
1dee45337b fixes specs 2015-09-23 21:08:21 +02:00
rgarcia
1d1b7b86d2 adds validation for postal codes in Madrid 2015-09-23 20:54:56 +02:00
rgarcia
1a6ee424d0 refactors postal code validation 2015-09-23 20:09:39 +02:00