Commit Graph

22 Commits

Author SHA1 Message Date
Howl
3ce1f58a48 add pagination to GET /tokens 2016-10-28 16:45:30 +02:00
Howl
325df61d96 Spaces and underscores in usernames now don't make a difference 2016-10-16 18:52:34 +02:00
Howl
da0021a9b3 Add some datadog shit 2016-10-02 19:47:31 +02:00
Howl
1826246125 Create `limit' package, remove need of login_attempts.go 2016-09-06 17:04:22 +02:00
Howl
e4d27f8d6b Allow users with AdminManageUsers to see banned users
Also:
- General code refactoring
- Allow banned/restricted users to see their scores etc
- common.MethodData now contains UserPrivileges
- UserPrivileges have now their own type
- Implement md.HasQuery, to know if there's a GET querystring parameter or not
2016-08-27 12:04:12 +02:00
Howl
a6ca8de13e Implement GET scores in official ripple api 2016-08-15 19:59:46 +02:00
Howl
e41be44397 Use sqlx instead of sql. Rewrite of most clusterfucks incoming 2016-08-15 13:37:03 +02:00
Howl
4f217781cc GET /tokens/self now returns 404 if no token is given 2016-08-09 19:22:41 +02:00
Howl
6926cda1ee Fix banned response code, fix typo 2016-07-10 20:53:06 +02:00
Howl
fcdd042d6c Finish up with new ranks and stuff on the API 2016-07-04 00:06:23 +02:00
Nyo
39f6b2bbcf New privileges on API (allowed column only) 2016-07-03 21:55:03 +02:00
Howl
fc38503bdd add GET /tokens/self 2016-06-14 12:01:30 +02:00
Howl
4d9ec829a8 Add token listing at GET /tokens, also add a token-fixing tool at /tokens/fix_privileges.
By the way, 100th commit on the API!
2016-06-14 11:32:11 +02:00
Howl
52d7b65493 Add /api/v1/tokens/self/delete 2016-06-14 10:03:53 +02:00
Howl
417409030a Fix 500 on tokens/new 2016-05-14 20:18:29 +02:00
Howl
32029d963e We git.zxq.co now 2016-04-19 16:07:27 +02:00
Howl
7387ed4295 Completely change response structure 2016-04-16 18:05:24 +02:00
Howl
c108da9bb3 implement unmarshaling straight into MethodData 2016-04-12 21:23:02 +02:00
Howl
0418adc8c3 Add login rate limiting 2016-04-10 11:51:34 +02:00
Howl
44d12d2493 Ability to add friends. Also, made a few helper functions. 2016-04-08 19:05:54 +02:00
Howl
ea2d418a53 more LIMIT 1s 2016-04-07 12:43:39 +02:00
Howl
d02f3f9951 Add token creation (login) 2016-04-05 22:22:13 +02:00