Commit Graph

7 Commits (5d8b8f22f977a73aba1287812af33897c837b999)

Author SHA1 Message Date
Eugen Rochko 907694df6a Add autofollow option to invites ()
* Add autofollow option to invites

* Trigger CodeClimate rebuild
2018-06-15 18:00:23 +02:00
Jennifer Kruse 7f6823b149 Able to deactivate invites if they aren't expired () 2018-04-17 13:52:08 +02:00
Jeroen 0bedd0bb45 Invites: Add '1 week' as expire option ()
* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Invites: Add '1 week' as expire option

IMO a max. of 1 day is too short. Not everyone has the time and motivation to use an invite in a 24 hour period. 1 week as a max. is I think a good compromise between convenience and security.

* Update en.yml
2018-03-24 12:50:14 +01:00
Yamagishi Kazutoshi 7f0a01a20c Fix invites form path () 2017-12-01 12:26:57 +01:00
Yamagishi Kazutoshi 53145abfbf Allow admin to deactivate invite created by users () 2017-12-01 12:26:19 +01:00
Yamagishi Kazutoshi d6846dce20 Show "expired" in invite index ()
* Show "expired" in invite index

* "Force expire" -> "Deactivate"
2017-11-28 15:41:02 +01:00
Eugen Rochko bc8c951083 Add consumable invites ()
* Add consumable invites

* Add UI for generating invite codes

* Add tests

* Display max uses and expiration in invites table, delete invite

* Remove unused column and redundant validator

- Default follows not used, probably bad idea
- InviteCodeValidator is redundant because RegistrationsController
  checks invite code validity

* Add admin setting to disable invites

* Add admin UI for invites, configurable role for invite creation

- Admin UI that lists everyone's invites, always available
- Admin setting min_invite_role to control who can invite people
- Non-admin invite UI only visible if users are allowed to

* Do not remove invites from database, expire them instantly
2017-11-27 16:07:59 +01:00