Skip to content

Instantly share code, notes, and snippets.

@Andygmb
Created November 26, 2014 22:54
Show Gist options
  • Save Andygmb/42ac85979cf8615a8ab9 to your computer and use it in GitHub Desktop.
Save Andygmb/42ac85979cf8615a8ab9 to your computer and use it in GitHub Desktop.
@/subreddit/register
Sign in with reddit + steam
return AJAX loading page that sends a request to /subreddit/registration_status every (?) seconds for status on query
@/subreddit/registration_status
Check steamrep status (API request to steamrep.com)
> If steamrep returns the user is a scammer, query bans table for steamid
> If nothing returned, add bans for each subreddit & ban them via reddit.
> Return ban page informing user they're banned
> If steamrep returns user is clean, continue
Query bans table for steamid/redditname in the subreddit they're attempting to register to
> If banned, return ban page & add user info to attempted registrations table
> If not in bans, query registered users (to check if they're already registered)
> If there is an entry in registered users, check that their redditname/steamid matches up with the registered one
> If redditname/steamid doesn't match up, add info to attempted registrations table and return an error message.
> If no registered user under redditname or steamid, add to registered users + attempted registers tables
> Apply subreddit flair on reddit and add as approved submitter
> Return success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment