Maciej Szlosarczyk
a64b03d204
Make sure that only admin contacts and registrants can lock a domain
2018-08-24 12:54:05 +03:00
Maciej Szlosarczyk
9623e2fb97
Refactor RegistrantUser class
...
* Extract frequently used country_code and ident methods
* Refactor domain query
* Add contact query method
* Add adminstrated_domains query method. Name will most likely change
in the future developments
* Change registry locks integration test name
2018-08-23 16:00:44 +03:00
Maciej Szlosarczyk
97617764fb
Update documentation for registry lock.
...
Also, make rewrite the return error message using better grammar
2018-08-17 16:00:43 +03:00
Maciej Szlosarczyk
3ee5291b57
Add handling of PaperTrail.whodunnit to Registrant API controllers
2018-08-17 13:31:53 +03:00
Maciej Szlosarczyk
07072ec6cb
Merge branch 'master' into registry-927
2018-08-17 11:28:41 +03:00
Maciej Szlosarczyk
b4b404888b
Disallow deposits that are lower than 0.01 EUR
2018-08-15 12:25:19 +03:00
Maciej Szlosarczyk
322d931856
Further massage rubocop issues
2018-08-10 15:18:53 +03:00
Maciej Szlosarczyk
9d7dc59652
Fix rubocop issues and a stray typo spotted along the way
2018-08-10 14:43:06 +03:00
Maciej Szlosarczyk
647cb53404
Merge branch 'master' into registry-927
2018-08-10 14:30:38 +03:00
Maciej Szlosarczyk
0a0962e007
Write tests around API for domain lock
2018-08-10 14:18:24 +03:00
Maciej Szlosarczyk
194adec9d3
Foo
2018-08-10 13:17:08 +03:00
Maciej Szlosarczyk
c186929be4
Use single quote instead of double quotes
2018-08-09 15:28:43 +03:00
Maciej Szlosarczyk
256d2b7de4
Add test for error in business registry
2018-08-09 15:24:21 +03:00
Maciej Szlosarczyk
4cc0669286
Add business registry support for contacts controller
2018-08-09 15:04:22 +03:00
Maciej Szlosarczyk
9dd9d4b1d6
Merge branch 'master' into registrant-api-contacts-controller
2018-08-09 14:05:27 +03:00
Maciej Szlosarczyk
faeeb55bc7
Add badges to locked domains
2018-08-09 13:57:31 +03:00
Maciej Szlosarczyk
dffe865d89
Add ability for admin to remove registry lock
2018-08-08 15:43:29 +03:00
Maciej Szlosarczyk
abb1ad60e8
Update failing test
2018-08-07 15:09:18 +03:00
Maciej Szlosarczyk
0798001725
Make returned API errors more consistent
2018-08-07 15:04:37 +03:00
Maciej Szlosarczyk
de9b1517b0
Merge branch 'registry-918' into registrant-api-contacts-controller
2018-08-07 14:57:58 +03:00
Maciej Szlosarczyk
e3807f694d
Merge branch 'registry-918' into registry-922
2018-08-07 14:54:16 +03:00
Maciej Szlosarczyk
ad8dfcc28f
Make authentication errors more consistent with other errors
2018-08-07 14:52:33 +03:00
Maciej Szlosarczyk
3673c69319
Add Registrant/Contacts endpoint
2018-08-01 14:57:41 +03:00
Maciej Szlosarczyk
5c39cb6917
Merge branch 'registry-918' into registry-922
2018-07-31 15:29:36 +03:00
Maciej Szlosarczyk
c476680a91
Add pagination to index
2018-07-31 15:14:21 +03:00
Maciej Szlosarczyk
10d42a0d74
Add domain index action (without pagination yet)
2018-07-30 15:09:48 +03:00
Maciej Szlosarczyk
c1ea79615f
Make API return errors array
2018-07-30 11:07:44 +03:00
Maciej Szlosarczyk
b33ad0d4e8
Add show action
2018-07-27 11:00:35 +03:00
Maciej Szlosarczyk
0ab9f6333f
Add API/Registrant/Domains route
2018-07-26 14:46:03 +03:00
Maciej Szlosarczyk
aac76b333c
Revert "Use inflector rule to acronym Api to API"
...
This reverts commit 06f5eb10d4
.
2018-07-24 12:53:51 +03:00
Maciej Szlosarczyk
90b2455032
Fix codeclimate issues
2018-07-24 12:29:25 +03:00
Maciej Szlosarczyk
06f5eb10d4
Use inflector rule to acronym Api to API
2018-07-24 12:02:58 +03:00
Maciej Szlosarczyk
42004f933f
Add IP block on authentication via EID
...
Also, correct mistakenly used 403 error code.
Update aplication-example.yml to include new functionality.
2018-07-24 11:33:51 +03:00
Maciej Szlosarczyk
8f234a5852
Create base controller class
2018-07-23 16:23:56 +03:00
Maciej Szlosarczyk
f92ece5467
Refactor common part of the find_or_create_by_x into a private method
2018-07-23 14:29:16 +03:00
Maciej Szlosarczyk
35c3f0a5bf
Change Base64 encoding to be url_safe, add crude implementation of a Controller
2018-07-20 17:29:13 +03:00
Maciej Szlosarczyk
dc8230dcc2
Create AuthTokenCreator and AuthTokenDecryptor classes
2018-07-20 15:21:10 +03:00
Maciej Szlosarczyk
dad57ba528
Implement the basic interface for the Authentication endpoint
...
* Handle errors as 422
* Require parameters through strong_parameters
* Use a custom rescue_from
2018-07-19 16:20:58 +03:00
Maciej Szlosarczyk
1c6b838b2b
Add auth-token class
2018-07-19 10:31:31 +03:00
Maciej Szlosarczyk
d67e777ea8
Create a Registrant auth controller
2018-07-18 16:24:55 +03:00
Maciej Szlosarczyk
6fb1e44cca
Move affected domains to the top of the hash, update integration test
2018-07-05 17:53:03 +03:00
Maciej Szlosarczyk
3c44472ea8
Revert flash_messages to shared/flash
2018-06-26 15:44:34 +03:00
Maciej Szlosarczyk
c3c1619238
Fix rubocop array issue
2018-06-22 13:39:45 +03:00
Artur Beljajev
7ee0f18a46
Merge branch 'master' into improve-registrant-area
2018-06-18 14:58:15 +03:00
Maciej Szlosarczyk
843dc8edcb
Add new links to registrant page layout
2018-06-18 10:30:23 +03:00
Artur Beljajev
67ec7b1256
Reformat
2018-06-18 00:30:48 +03:00
Artur Beljajev
0b6e89dbca
Hide methods
2018-06-18 00:22:40 +03:00
Timo Võhmar
8ec6b80794
Merge pull request #857 from internetee/remove-rubocop-gem
...
Remove "rubocop" gem
2018-06-14 13:35:25 +03:00
Artur Beljajev
c44f3df7f5
Remove Rubocop inline directives
2018-06-07 19:17:16 +03:00
Artur Beljajev
9e2ce0351d
Merge branch 'master' into remove-lib-from-autoload-path
2018-06-06 21:48:02 +03:00