Commit 107fc552 authored by issyrocks12's avatar issyrocks12
parents b37cfb73 24101efe
......@@ -6,6 +6,11 @@ A [Flarum](http://flarum.org) extension that allows your to manage every aspect
This extension allows you to give users strikes for posts if they violate rules. Those strikes are kept and can be viewed at anytime by anyone with permission. This extension also allows your to disable the email registration option, as well as adds age and gender at registration. The user's age and gender is shown on their profile page. You can also manually activate users from the admin interface, or from the users page.
![gif](http://i.imgur.com/pkMM6aA.gif)
![gif](http://i.imgur.com/dfHaFwL.gif)
### Goals
- To make registration more customizable
......@@ -30,9 +35,9 @@ Then login and enable the extension.
### Developer Guide
You have 2 events to listen for "UserWillBeGivenStrike" as well as "UserGivenStike" which both contain the offending, the user being struck, the strike issuer, and the reason.
You have 2 events to listen for "UserWillBeGivenStrike" as well as "UserWasGivenStike" which both contain the offending post, the user being struck, the strike issuer, and the reason.
You also have the api/strike post route to give a Sumer a strike, /API strike/{userId} get route to get a user's strikes, and /api/strike/{id} delete route to delete the strike.
You also have the api/strike post route to give a user a strike, /API strike/{userId} get route to get a user's strikes, and /api/strike/{id} delete route to delete the strike.
You can also post to /api/reflar/usermanagement/attributes to set a user's gender and age.
......@@ -49,4 +54,4 @@ You can also post to /api/reflar/usermanagement/attributes to set a user's gende
- [on github](https://github.com/ReFlar/user-management)
- [on packagist](https://packagist.org/packages/ReFlar/user-management)
- [issues](https://github.com/ReFlar/user-management/issues)
\ No newline at end of file
- [issues](https://github.com/ReFlar/user-management/issues)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment