Remove insecure from application
- We don't want anyone to be able to post so insecure has been removed
- We only want to allow logged in users to be able to post
Allow logged in users to posts
- only allow posting if you are logged in aka have a userID
- returns null if no user is logged in
Add require login function to router
- User access will be denied if a user is not logged in for the postSubmit route
- User will see an access denied message
- Add onBeforeAction for postSubmit router to check if a user is logged in before submitting
Add access denied template
- Access denied template will alert user that their access is denied
- User will see this message: 'You can't get here! Please log in.'
Show waiting screen while waiting to log in
- Ammend the requireLogin function by adding login to see if the user is logging in or not
- If the user is logging in, it will show the loading template
- If the user is NOT logging in, it will show access denied
Merge pull request #15 from alexanderdavidpan/Show_Waiting_Screen_While_Waiting_To_Log_In

Deny access non-users and show waiting screen while waiting to log in