Commit Graph

432 Commits

Author SHA1 Message Date
MrYummy
b73b4cd1bc Made the default badge of 'create_admin_user' none 2017-06-02 19:34:15 +02:00
MrYummy
00254ebf51 Addded default badge 'none' and enforced badges 2017-06-02 19:34:15 +02:00
MrYummy
7d3ad5cde6 allowed role and badge filtering, made User.search take Role and Badge as params 2017-06-02 19:34:15 +02:00
MrYummy
a1ade53445 moved all search styling to CSS, removed friendly (but slow) URLs, moved WHERE strings into an array 2017-06-02 19:34:15 +02:00
MrYummy
a658852e86 Added Donator+ perk (/lol id) to the 'Donate' page and fixed spelling error on signup page ('singing' => 'signing') 2017-06-02 19:34:15 +02:00
MrYummy
bdab104ab8 Changed 'Who's Playing' code to handle revised JSON format 2017-06-02 19:34:15 +02:00
MrYummy
4c0ceb5882 badge migration now contains default badges and creation of badge table 2017-06-02 19:34:06 +02:00
MrYummy
c20e57665c Changed 'no badge' check to be more reliable, added rake task for creating superadmin users 2017-06-02 19:31:15 +02:00
MrYummy
49ab2d0778 Removed all trace of search_redirect, included blanks for forum and label filters 2017-06-02 19:25:33 +02:00
MrYummy
fdc6ceabb6 removed passing of useless params, updated placeholder for user textcomplete 2017-06-02 19:22:04 +02:00
MrYummy
1398fcc015 Updated find_by methods 2017-06-02 19:17:35 +02:00
MrYummy
887263d28e ordered searching to match SQL clauses, moved role&badge filtering to User.search 2017-06-02 19:14:28 +02:00
MrYummy
0d5d69ac6e Added CSS for index search fields and revised regex for author search 2017-06-02 19:06:20 +02:00
MrYummy
0c3f6b2223 fixed action caching 2017-06-02 19:01:50 +02:00
MrYummy
44392c1df3 Added Searching Features
* Added Thread Search Feature

* Added User Search Feature

* Re-organized searching, added @mention support to author search
2017-05-29 00:10:58 +02:00
MrYummy
252dc5bdfa Added Who's Playing? screen 2017-05-29 00:10:58 +02:00
MrYummy
dfb1ed9185 Added Website Settings 2017-05-29 00:10:58 +02:00
MrYummy
888c863b10 Added Reply Reversal And Toggle 2017-05-29 00:10:58 +02:00
MrYummy
e4d86d4bb0 Added Necropost Warning 2017-05-29 00:10:51 +02:00
MrYummy
276949c0cd Added badge system 2017-05-29 00:10:41 +02:00
jomo
992406a20b allow markdown emphasis inside of words 2017-01-08 08:55:31 +01:00
jomo
61edf27888 add CookieJar patch to flag cookies as secure based on the connection protocol
rails only allows to globally flag session cookies as either secure or not
this patch sets the secure flag for cookies based on the protocol (http/https)
this is used to send cookies via http but flag them secure for https
which allows use with HTTP over Tor for an onion domain
this is acceptable because nginx redirects clearnet http to https
2017-01-08 08:06:37 +01:00
jomo
abeb405bab rescue and fail gracefully when updated user can't be saved
saving the user can fail when the new ign or name are already assigned to a different user.
it's not worth implementing automatic correction because there can be multiple or even circular
'dependencies' of unique names that need to be changed
2016-12-14 23:57:08 +01:00
jomo
381e6e8b5b ensure donor tag color is always white 2016-11-19 21:15:03 +01:00
jomo
5ba4783393 adjust max size of thread reply to that of threads, see #11 2016-10-14 13:26:24 +02:00
jomo
ddc57fa7df Merge commit '00fc8b3fcd10860abb70a57fb6aaab3c476259f2' 2016-10-14 10:58:39 +02:00
Jonas Folvik
00fc8b3fcd Changed the content length of forumthreads to 20k because Nemes 2016-10-03 23:01:46 +02:00
jomo
cce749deef remove index 'email' from register_tokens
only records with the same UUID are deleted before INSERTing new ones
meaning a player could prevent another one from using a certain address
when emails are unique.

There's no good reason to force uniqueness on emails in this table
2016-09-27 00:15:01 +02:00
jomo
b057cb5913 remove annoying permission check for comments, forums, threads, replies 2016-07-24 22:30:00 +02:00
jomo
c9e7015f4c update slack URL 2016-07-20 14:21:41 +02:00
jomo
76076bbdf2 fix edit link permission checks for comments, threads, replies 2016-07-19 15:06:40 +02:00
jomo
f2353eebcc check mod+ rank when dealing with forum threads 2016-07-19 14:56:00 +02:00
jomo
f6929da548 check mod+ rank when dealing with thread replies 2016-07-19 14:53:41 +02:00
jomo
072f38a373 check mod+ rank when updating comment 2016-07-19 14:50:03 +02:00
jomo
d9ae4e7d3a restrict edit page access to users allowed to update 2016-07-11 21:06:12 +02:00
Jonas Folvik
bb1d2c0c3e resend mail bug fix
We can now send the mail when you are mod and you also don't need to be
unconfirmed yourself.

a better fix

this is just a better fix to my last commit
2016-06-24 14:45:49 +02:00
jomo
81d9fabe7b allow mods to resend confirmation emails for other users 2016-06-21 23:41:04 +02:00
jomo
e0ac5fac13 don't allow other users or confirmed users to resend confirmation email 2016-06-21 23:35:41 +02:00
jomo
3f91e1a099 fix confirmation redirect 2016-06-21 23:28:42 +02:00
jomo
eabf773ba3 fix resend button style 2016-06-21 23:26:56 +02:00
jomo
e2c413a8b1 Merge branch 'master' of https://github.com/Futseh/redstoner.com 2016-06-21 23:05:59 +02:00
Jonas Folvik
db1c10eb9b An Option to resend the confirmation mail
You should now be able to resend the confirmation mail with the click of
a link that is next to the warning that the mail isn't confirmed.

Resend the confirmation mail cleaning

Just a way to re use the files and stuff we already have instead of the
file I created even though I could use the register_mail we have.

Change of route and link to button

I changed the route from GET to POST because of security reasons, and
changed the link_to to a button_to

changed the notice

I changed the notice so it said check for the mail instead of check for
the link

Changed notice and button

Changed the notice to say "Check your inbox" instead of "Check your
mail" also changed the way the class looks
2016-06-17 10:21:49 +02:00
jomo
c8e964c23f clarify write-only notice 2016-06-12 00:54:28 +02:00
jomo
44839b08ae fix syntax error when deleting invalid role from POST params 2016-06-12 00:44:39 +02:00
jomo
8beb2d39db remove a few unnecessary html_safe 2016-05-19 20:23:34 +02:00
jomo
f633b49eca fix potential XSS 2016-05-19 20:15:07 +02:00
jomo
bd061d3441 fix thread & reply navigator links 2016-05-08 19:30:52 +02:00
jomo
37cccdff18 require uuid for password reset, destroy token after each try 2016-05-08 19:04:16 +02:00
jomo
1f51e9d823 allow relative return_path only, check validity 2016-05-07 03:52:14 +02:00
jomo
f110d2e0ad add rendering support for youtube usernames 2016-03-09 00:56:03 +01:00