sbkwgh
|
a614022e88
Move from using params on User instance for permissions to a dedicated Ban model, move methods in permissions.js file to class methods on Ban model
|
8 lat temu |
sbkwgh
|
2483e88858
Implement banned user route, as well as adding if clause on creating thread/post routes
|
8 lat temu |
sbkwgh
|
a307c32c89
Move post meta info to instance method
|
8 lat temu |
sbkwgh
|
c38aad3a50
Refactor delete and login routes
|
8 lat temu |
sbkwgh
|
5dca35c9e1
Refactor password and description update - n.b. hacky fix so that hook being called twice does not re-hash the hash
|
8 lat temu |
sbkwgh
|
f61691437c
Mostly refactor post user route
|
8 lat temu |
sbkwgh
|
610f3bc0d8
Add admin cookie for ui purposes
|
8 lat temu |
sbkwgh
|
31f35e9f37
Add UserId to session variable
|
8 lat temu |
sbkwgh
|
c633d7895c
Destroy session on deletion of account
|
8 lat temu |
sbkwgh
|
cc8aae5a46
Fix bug where session was not being destroyed
|
8 lat temu |
sbkwgh
|
a7ff1103ba
Fix tests and implement them to delete user
|
8 lat temu |
sbkwgh
|
ef0e5bb464
Add edge case if no parameter is provided
|
8 lat temu |
sbkwgh
|
af10955b6a
Fix bug where blank password would cause route to hang
|
8 lat temu |
sbkwgh
|
aeb700a800
Fix tests and implement password update
|
8 lat temu |
sbkwgh
|
d4d0318a17
Implement update description tests
|
8 lat temu |
sbkwgh
|
303f1b04a5
Fix bug where post was paginated by postnumber not id, make post pagination descending
|
8 lat temu |
sbkwgh
|
2bfec678a0
Fix bugs
|
8 lat temu |
sbkwgh
|
c5fd80e14a
Buggy changes
|
8 lat temu |
sbkwgh
|
8fd6ee7f76
Implement test
|
8 lat temu |
sbkwgh
|
64da3bb39c
Fix bugs with user page api routes
|
8 lat temu |
sbkwgh
|
ef5111cf53
Move logic to pagination functions in lib folder; at threads query route
|
8 lat temu |
sbkwgh
|
e1bd40ff1d
Fix bugs to make tests green for user page pagination
|
8 lat temu |
sbkwgh
|
4698a1d331
Add pagination to user page
|
8 lat temu |
sbkwgh
|
1ec8bf1085
Get comments for user by passing comments query to route
|
8 lat temu |
sbkwgh
|
b3839bc591
Throw accoutn does not exist error if account does not exist
|
8 lat temu |
sbkwgh
|
304c24cfa3
Allow get route for user without being logged in, update tests to reflect this
|
8 lat temu |
sbkwgh
|
f19b2d5a78
Add session function to set session and username cookie
|
8 lat temu |
sbkwgh
|
3306d234a7
Add admin session parameter, set session to null to delete
|
8 lat temu |
sbkwgh
|
0bf11850f5
Send 401 rather than 400 error for invalid token
|
8 lat temu |
sbkwgh
|
0e22ac47be
Fix bug: wrong variable
|
8 lat temu |