discourse/spec
Blake Erickson dbb3ddc7a6 FIX: approve invited user
This commit fixes the case where invited users who typed in a password
would not be approved by default. Because we moved the user create logic
for an invited user there was a clash with the `save` in the user model
and the `save` in the invite_redeemer class.

- added approve logic into invite_redeemer class.
- added tests to verify that the user is approved
- added a check to see if must_approve_users is on
- added a check to see if the inviter is staff
- go ahead and approve the user if must_approve_users is off
- keep existing User.approve workflow if user exists
- improve if/else logic to remove duplicate code
- use `Time.zone.now`
2017-03-05 06:58:23 -07:00
..
components Revert "Revert "Revert "SECURITY: Ensure oAuth authenticated email is the same as created user's email.""" 2017-03-01 10:16:59 +08:00
controllers FEATURE: new category setting for whether to show latest topics or top topics by default 2017-03-03 11:30:44 -05:00
fabricators switch contents of embeddable_host_fabricator.rb and category_fabricator.rb 2017-03-01 15:13:31 -05:00
fixtures FEATURE: new 'max_image_megapixels' site setting 2017-01-11 23:37:12 +01:00
helpers FEATURE: replace emoji with unicode in title and description meta tags 2017-02-22 16:24:13 -05:00
integration FIX: Don't mark user as active if verified email is different. 2017-03-02 14:24:30 +08:00
integrity FIX: i18n integrity specs 2017-02-24 11:35:33 +01:00
jobs FIX: wasn't extracting links to quoted posts 2017-02-06 14:45:04 +01:00
mailers FIX: allow existing users to be invited to topic/message when must_approve_users is enabled 2017-02-03 13:01:23 +05:30
models FIX: approve invited user 2017-03-05 06:58:23 -07:00
phantom_js Dump the page's content as well on failure. 2017-01-17 18:40:46 +08:00
serializers FEATURE: Allow group owners to edit group name and avatar flair. 2016-12-05 14:27:46 +08:00
services FIX: handle new user when logging name change 2017-03-01 13:43:57 +05:30
support No need for special helper to reset SiteSetting state. 2017-01-28 10:55:49 +08:00
tasks Suppress console output when running RSpec 2017-01-28 11:04:47 +05:30
views/omniauth_callbacks FIX: Weird spec 2016-06-10 11:32:32 -04:00
discourse_tagging_spec.rb FIX: prevent creation of tags with invalid characters 2016-10-12 15:44:36 -04:00
rails_helper.rb FIX: token rotation not accounting for overlapping tokens correctly 2017-02-15 10:58:18 -05:00