Граф коммитов

130 Коммитов

Автор SHA1 Сообщение Дата
Andrew Hayward 57d999527b Centralising user clearance 2013-04-19 13:54:26 +01:00
Andrew Hayward 1c330925c0 Nothing was using that anyway 2013-04-19 13:53:36 +01:00
Andrew Hayward bdcc794617 Making `extractUserData` a bit more flexible 2013-04-19 13:53:23 +01:00
Andrew Hayward 5658c66711 Clarifying doc comment 2013-04-19 13:31:55 +01:00
Andrew Hayward ceb08e92ef Reverting relationship type 2013-04-19 13:17:19 +01:00
Andrew Hayward a22c54cf2c Conforming a little more to the node style guide
http://nodeguide.com/style.html
2013-04-19 11:38:00 +01:00
Andrew Hayward ce41e98b12 Various bits of tidying and refactoring 2013-04-19 11:11:18 +01:00
Andrew Hayward 69c4ba39e9 Complying with expressjs 3.0
http://expressjs.com/api.html#res.redirect
2013-04-19 10:18:17 +01:00
Andrew Hayward 7d923f5fa5 Turning on autoescape
Nunjucks 0.1.8 doesn't support it, but the next release should do, so doing this now before I forget
2013-04-19 10:12:22 +01:00
Andrew Hayward 79e26523f2 Removing debugging logging 2013-04-19 09:08:05 +01:00
Andrew Hayward 8c1d1e6f97 Removing magic number for max age 2013-04-19 09:02:40 +01:00
Andrew Hayward f92910725d Missing semi-colon 2013-04-19 09:02:06 +01:00
Andrew Hayward ace3798b47 Fixing relationship type for learners 2013-04-19 08:58:43 +01:00
Andrew Hayward 173ea1242d Adding a few comments 2013-04-19 08:58:27 +01:00
Andrew Hayward 0083d1f13e Adding an explanation of why this is necessary 2013-04-19 08:56:36 +01:00
Andrew Hayward 1127c4ab0a Dropping `switch` for ternary format 2013-04-18 17:43:04 +01:00
Andrew Hayward c5e8c91653 Switching function declaration styles 2013-04-18 17:37:40 +01:00
Andrew Hayward ab4adb1a60 New range function means this needs to be -1
Parsing priority error in nunjucks means the -1 has to be wrapped, otherwise you get a template error - should probably file a bug for that
2013-04-18 17:33:25 +01:00
Andrew Hayward 975c205fda Swapping out `range` for underscore version 2013-04-18 17:32:27 +01:00
Andrew Hayward 237a8c27cc Using underscore.js 2013-04-18 17:31:56 +01:00
Andrew Hayward 4286e8b486 Removing pointless code 2013-04-18 17:21:38 +01:00
Andrew Hayward 0de9f8abb9 Removing dead code 2013-04-18 17:17:58 +01:00
Andrew Hayward c7b8bf18bf Moving to somewhere a bit more sensible 2013-04-18 15:36:50 +01:00
Andrew Hayward 18a4735479 Going a bit more node-esque 2013-04-18 15:35:54 +01:00
Andrew Hayward 5080673f66 Sign-up process 2013-04-18 15:33:41 +01:00
Andrew Hayward a78a5d8748 `Complete` field 2013-04-18 15:33:26 +01:00
Andrew Hayward ed51b59bf5 Adding `range`
Hopefully it can be removed soon
2013-04-18 15:33:11 +01:00
Andrew Hayward d52912bf9c Form updates 2013-04-18 15:32:49 +01:00
Andrew Hayward 57db6356f1 Adding CSRF protection before we forget 2013-04-18 12:11:06 +01:00
Andrew Hayward 913c9a6f16 Doing path joining 'properly' 2013-04-18 12:10:15 +01:00
Andrew Hayward 009d217c4b Adjustments to token signup process 2013-04-18 11:53:03 +01:00
Andrew Hayward fc3acd5850 Fixing ID 2013-04-18 11:48:38 +01:00
Andrew Hayward 661208e66e Overhauling models
Relationships were getting recursive, due to models being split across multiple files
2013-04-18 11:48:12 +01:00
Andrew Hayward dab83d1beb Guardian sign-up and general log-in processes 2013-04-17 17:50:31 +01:00
Andrew Hayward f6f9669812 Displaying messages at a global level 2013-04-17 17:39:52 +01:00
Andrew Hayward b72ca3afee Adding `bcrypt` for password hashing 2013-04-17 17:39:38 +01:00
Andrew Hayward 4352798909 Signup-form alterations
* Labels
* Removing second password field
2013-04-17 17:38:30 +01:00
Andrew Hayward e70163effb Adding `isValid` instance method to signup tokens 2013-04-17 17:37:47 +01:00
Andrew Hayward af2edc9047 Ensuring models sync to database 2013-04-17 17:37:28 +01:00
Andrew Hayward d45682d783 Reversing the Guardian/Learner relationship 2013-04-17 17:36:18 +01:00
Andrew Hayward b113ed3194 Models for users and sign-up process 2013-04-16 15:57:32 +01:00
Andrew Hayward b7a33f2090 Merge pull request #114 from andrewhayward/auth
Parent sign-up changes
2013-04-16 07:56:42 -07:00
Andrew Hayward 800bd61315 Stubbing out signup submission endpoint 2013-04-16 15:55:12 +01:00
Andrew Hayward d08d25a412 Parent sign-up changes 2013-04-16 12:11:52 +01:00
Andrew Hayward c241881735 Merge pull request #102 from andrewhayward/auth
Merging this in, as it doesn't affect anything else (other than creating a few broken stubs post log-in).
2013-04-12 08:43:38 -07:00
Andrew Hayward 8070fd63f9 Merge pull request #99 from coryshaw/master
styles polish
2013-04-12 05:44:26 -07:00
Andrew Hayward 89ea1be36f Parents and guardians don't have backpacks
(They don't have dashboards yet either!)
2013-04-12 13:43:38 +01:00
Andrew Hayward ec26883e5c Somewhat modified sign-up flow
See https://github.com/mozilla/CSOL-site/issues/59
2013-04-12 13:27:30 +01:00
Cory Shaw 69dc107867 changing 450 to 480 to align with bootstrap standard 2013-04-11 10:47:54 -10:00
Andrew Hayward 1fe3b5dbd9 A rough start on the 'learn' subsection 2013-04-11 12:53:36 +01:00