Commit graph

89 commits

Author SHA1 Message Date
Alex Sherman
43b3033991 Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00
Karl Erik Õunapuu
fc34105c40
Merge remote-tracking branch 'origin/master' into log-bounced-emails 2020-10-27 11:34:19 +02:00
Alex Sherman
eeffb7ee22 Add tests 2020-09-30 20:13:51 +05:00
Karl Erik Õunapuu
64308e1104
Fix CC issues 2020-09-18 15:29:33 +03:00
Karl Erik Õunapuu
036a3a3720
Return empty user object when authorized user not found 2020-09-18 10:52:14 +03:00
Karl Erik Õunapuu
2dbcbf1c29 Remove redundant api check blocks 2020-05-05 14:23:09 +03:00
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +02:00
Artur Beljajev
207c2a704c Rename profile page in registrar area to account 2019-05-15 13:44:36 +03:00
Artur Beljajev
a08f063640 Refactor ID card sign-in
- Extract to Devise custom strategy
- Use `SSL_CLIENT_S_DN_CN` env variable instead of `SSL_CLIENT_S_DN` to
get ID card data
- Remove `database_authenticatable` strategy from `RegistrantUser`

Closes #1047
2019-03-19 19:37:36 +02:00
Artur Beljajev
0fef419799 Fix redirection after sign-in
Closes #973
2018-09-12 13:55:22 +03:00
Artur Beljajev
211f8c9143 Fix home page link 2018-08-22 00:21:12 +03:00
Artur Beljajev
1d95c1ccbc Use standard login form 2018-08-09 13:43:11 +03:00
Artur Beljajev
c1066f12c6 Fix registrar area authenticated root path 2018-07-19 21:50:03 +03:00
Artur Beljajev
989bb32548 Improve readability 2018-07-16 01:31:36 +03:00
Artur Beljajev
a651ac8cab Fix Rubocop warnings 2018-07-15 19:50:15 +03:00
Artur Beljajev
f6ad22156e Supply PaperTrail with current user 2018-07-13 23:13:58 +03:00
Artur Beljajev
32ecf36057 Rename users.password to users.plain_text_password
Otherwise it conflicts with Devise
2018-07-13 23:09:21 +03:00
Artur Beljajev
9684c8e59f Refactor Devise integration
- Use scoped users
- Use the named route helpers instead of hardcoded paths
2018-06-20 12:21:22 +03:00
Georg Kahest
f1739f2202 fix typo 2017-11-14 12:58:22 +02:00
Georg Kahest
abeeec3baf prefer each over for 2017-11-14 12:51:44 +02:00
Georg Kahest
e62bb19a7e fix indention 2017-11-14 12:32:33 +02:00
Georg Kahest
3f1c36bd9a fix some of the style bugs 2017-11-13 18:43:37 +02:00
Georg Kahest
af31230285 fix rspec for mid without ip whitelist 2017-11-13 18:21:39 +02:00
Georg Kahest
06049cd22f while logging in with id/mid pick only users who have whitelisted ip 2017-11-13 18:21:27 +02:00
Georg
0f352cab24 Access denied forbidden status brakes IE and pingdom monitoring (#617)
*Access denied page  forbidden status brakes IE and pingdom monitoring, removing it.
2017-10-17 13:24:27 +03:00
Artur Beljajev
ff466e57ac Use a guard clause instead of condition
#600
2017-10-04 01:40:41 +03:00
Artur Beljajev
a82625c635 Remove rubocop tags
#600
2017-10-04 01:07:19 +03:00
Artur Beljajev
35afbf1f8c Refactor IP registrar restriction
#600
2017-10-04 01:03:32 +03:00
Artur Beljajev
787cca8e4c Extract Registrar::CurrentUserController from SessionsController
#600
2017-10-04 01:00:24 +03:00
Artur Beljajev
d7f1aee47b Do not check environment on IP whitelist verification
#600
2017-09-29 14:53:22 +03:00
Georg Kahest
1493cb8700 use http code (403) when registrar portal access is denied by ip whitelist, show client ip 2017-09-27 18:16:38 +03:00
Artur Beljajev
f592adcf06 Merge branch 'master' into change-registrar-area-controller-hierarchy
# Conflicts:
#	app/controllers/registrar/sessions_controller.rb
2017-04-13 11:36:00 +03:00
Georg Kahest
cc58c687b6 lock digidoc_client to commit, fix typo 2017-04-12 16:39:38 +03:00
Georg Kahest
aa141b50d6 skip client.logger in TEST env 2017-04-12 16:02:22 +03:00
Georg Kahest
a606421b8b log digidoc to same place as rails #448 2017-04-11 14:29:22 +03:00
Artur Beljajev
fbe3bf979d Use layout inheritance in registrar area 2017-04-06 20:58:36 +03:00
Artur Beljajev
92d8008c15 Introduce BaseController for registrar area 2017-04-06 19:05:14 +03:00
Artur Beljajev
2643df8d21 Improve registrar sessions specs
registry-240
2016-11-09 19:12:51 +02:00
Martin Lensment
f7906800c4 Cleanup #2713 2015-09-15 12:11:12 +03:00
Martin Lensment
27f37b9ec4 Add registrar dashboard #2713 2015-09-15 11:49:18 +03:00
Priit Tark
30454cc196 Updated specs 2015-08-19 11:18:38 +03:00
Priit Tark
34f1d7d254 Separated epp login and epp request abilities #2742 2015-08-19 01:21:16 +03:00
Martin Lensment
5b01c4d39b Do not check IP on user switch in dev #2713 2015-08-18 12:56:49 +03:00
Martin Lensment
a4ccc5749e Improve ip whitelist #2713 2015-08-18 12:32:51 +03:00
Martin Lensment
d26dd3da98 Check API whitelist IP-s when loggin into registrar with pw #2713 2015-08-14 17:34:05 +03:00
Martin Lensment
0a0543c715 Switch user in registrar #2754 2015-07-28 17:56:01 +03:00
Priit Tark
7530d6ecab Rubocop upgraded #2711 2015-06-26 18:19:36 +03:00
Martin Lensment
6256d4abee Display verification code on mid sign in #2619 2015-06-25 10:53:44 +03:00
Martin Lensment
f1c7568013 Configure sk service name #2619 2015-06-08 12:40:32 +03:00
Priit Tark
ff87e38f2b rubocop update 2015-05-27 10:12:13 +03:00