Commit graph

19 commits

Author SHA1 Message Date
Lin Jen-Shin
6b0d493350 Introduce ApplicationSettingImplementation yay
So the fake can enjoy it, too. We don't use `prepend`
because that'll require we change `allow_any_instance_of` to
`expect_next_instance_of`, but that's not very easy to do.
We can do that later.
2019-03-19 13:01:37 +08:00
blackst0ne
b44a2c801a Update specs to rails5 format
Updates specs to use new rails5 format.

The old format:
`get :show, { some: params }, { some: headers }`

The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
George Tsiolis
566ba126f5 Fix typos in lib 2018-11-15 12:15:43 +02:00
Bob Van Landuyt
3d713ac114 Users can accept terms during registration
When a user checks the `accept` checkbox, we will track that
acceptance as usual. That way they don't need to accept again after
they complete the registration.

When an unauthenticated user visits the `/-/users/terms` page, there
is no button to accept, decline or continue. The 'current-user menu'
is also hidden from the top bar.
2018-06-08 19:17:00 +02:00
Markus Koller
257fd57134 Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
Winnie Hellmann
265b1a3b72 Show confirmation modal before deleting account 2017-10-06 20:40:41 +00:00
Robert Speicher
c8b802471b Enable the RSpec/HookArgument cop and auto-correct offenses 2017-08-10 19:29:42 -04:00
Rémy Coutable
c946ee1282
Enable the Layout/SpaceBeforeBlockBraces cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-08-09 11:52:22 +02:00
Nick Thomas
158581a447 Refactor the DeleteUserWorker 2017-06-05 13:08:06 +01:00
Stan Hu
6a2d022d1d Delete users asynchronously 2017-04-02 05:37:05 -07:00
George Andrinopoulos
7c74a0209b Implement new service for creating user 2017-03-27 09:37:24 +00:00
Jarka Kadlecova
3d2954e457 Use reCaptcha when an issue identified as spam 2017-02-07 12:56:20 +01:00
Drew Blessing
ca1c492baf Properly handle failed reCAPTCHA on user registration
If a user presses the 'Register' button too quickly after attempting
to solve the reCAPTCHA, or the reCAPTCHA is not solved at all, the
user would experience a 500 error. Now, the case is properly
handled and the user will be sent back to the registration page
with a clear error message and can try again.
2017-01-03 01:35:42 -06:00
Timothy Andrew
f617bd7690 Assert against ActionMailer::Base.deliveries relatively.
- Look for a `change` in its size rather than asserting against an
  actual size.

- This previously failed because another spec had an email in
  `ActionMailer::Base.deliveries`, which failed this `be_nil` assertion.
2016-07-05 10:20:32 +05:30
DJ Mountney
7d57b11093 Update tests for the current_application_settings request store changes 2016-05-27 19:05:52 -07:00
Robert Speicher
75739e54be Enable RSpec/NotToNot cop and auto-correct offenses
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Felipe Artur
7bb84e6497 Change landing page when skipping confirmation email and add documentation 2016-05-16 14:56:32 -03:00
Felipe Artur
c5526a2d9a Change skip_user_confirmation_email to send_user_confirmation_email 2016-05-16 14:56:32 -03:00
Felipe Artur
71ca2de7aa Toggle email signup confirmation in admin settings 2016-05-16 14:56:32 -03:00