5196 Commits

Author SHA1 Message Date
Christopher Allan Webber
5d6840a010 We should always have a request.user object, even if None. 2011-04-03 18:35:52 -05:00
Christopher Allan Webber
58dec5efe5 Added setup_user_in_request 2011-04-03 18:34:05 -05:00
Christopher Allan Webber
b058cf15f0 We should use one instead of find_one to really make sure there's only
one such user in the database
2011-04-03 18:32:29 -05:00
Christopher Allan Webber
d193896315 Also handle when there is no such user 2011-04-03 18:28:17 -05:00
Christopher Allan Webber
b97232fa2f Working logout function 2011-04-03 18:23:40 -05:00
Christopher Allan Webber
a37767172b Logins seem to work. 2011-04-03 17:05:30 -05:00
Christopher Allan Webber
4ad5af85e2 Added a check_login command to User 2011-04-03 16:38:13 -05:00
Christopher Allan Webber
14ba9383de Use beaker from middleware, it's official. 2011-04-03 16:37:36 -05:00
Christopher Allan Webber
51479a1d22 Clarified documentation on fake_login_attempt and restored bcrypt import 2011-04-03 16:37:15 -05:00
Christopher Allan Webber
692fd1c981 starting to write login code 2011-04-03 16:36:03 -05:00
Christopher Allan Webber
c15c9843b4 Added a fake_login_attempt utility. 2011-04-03 15:31:16 -05:00
Christopher Allan Webber
f5def6fe23 Use the passwordfield for password fields, obviously ;o 2011-04-03 15:02:06 -05:00
Christopher Allan Webber
73cb7b8efc Return an HTTPFound, not HTTPTemporaryRedirect 2011-04-03 14:58:51 -05:00
Christopher Allan Webber
2418182016 Registering almost works right :) 2011-04-03 13:35:18 -05:00
Christopher Allan Webber
a0598d5cae Base mediagoblin template, and register templates 2011-04-03 13:35:01 -05:00
Christopher Allan Webber
e0bc23d370 We should return a unicode object in bcrypt_gen_password_hash 2011-04-03 13:33:45 -05:00
Christopher Allan Webber
73a6e206e6 Put the User object officially in the 'users' document collection 2011-04-03 09:58:35 -05:00
Christopher Allan Webber
db78002412 Also make sure the auth system successfully returns False when login
failboats.
2011-04-02 12:42:07 -05:00
Christopher Allan Webber
62615b8133 Where did this o come from. 2011-04-02 11:20:36 -05:00
Christopher Allan Webber
80873214d6 Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin 2011-04-02 10:49:16 -05:00
Christopher Allan Webber
4b5f4e8791 Unit tests for our bcrypt auth stuff. Our first tests! 2011-04-02 10:48:34 -05:00
Christopher Allan Webber
6755f50e8e Basic authentication tools using py-bcrypt 2011-04-02 10:29:54 -05:00
Matt Lee
f7294dd961 Added catalogue number 2011-03-28 10:28:10 -04:00
Christopher Allan Webber
ebc4ab71a2 HTML export of the READMEish braindump. 2011-03-27 23:38:27 -05:00
Christopher Allan Webber
869704d650 A semi-verbose braindump of what I think GNU MediaGoblin will use / look like / be. 2011-03-27 23:25:50 -05:00
Matt Lee
cf99711dcd Added copying and authors files 2011-03-27 18:48:15 -04:00
Matt Lee
e5572c6077 Added copyright notices 2011-03-27 18:47:23 -04:00
Christopher Allan Webber
ef7cdac5b9 A testing submit view that doesn't work but is getting closer to working. 2011-03-27 17:32:27 -05:00
Christopher Allan Webber
6f86cfe95c __collection__ should be auto-defined as media_entries 2011-03-27 17:31:18 -05:00
Christopher Allan Webber
65d7374c37 erp, connection[database_path] not connection['database_path'] obviously :P 2011-03-27 17:30:42 -05:00
Christopher Allan Webber
2e30e3690a Ignore mediagoblin egg-info 2011-03-27 17:29:59 -05:00
Christopher Allan Webber
2b4e236ac3 Properly load in the database and register the connection with the models 2011-03-26 13:03:32 -05:00
Christopher Allan Webber
4329be147b date_creation should be created 2011-03-26 11:45:11 -05:00
Christopher Allan Webber
fc9bb821ea required_values, default_values! For the only two models we have. 2011-03-26 09:10:04 -05:00
Christopher Allan Webber
db61f7d152 A simple register_modules helper function. 2011-03-25 21:27:52 -05:00
Christopher Allan Webber
d232e0f6be Adding a skeletal models.py 2011-03-24 20:19:25 -05:00
Christopher Allan Webber
508775bd23 Requiring mongokit 2011-03-24 19:54:06 -05:00
Christopher Allan Webber
7846e40608 Commenting out beaker till we start using it :) 2011-03-24 19:06:31 -05:00
Christopher Allan Webber
0c04118b76 Adding requirements :) 2011-03-24 19:00:55 -05:00
Christopher Allan Webber
c4d7156476 beakered_app removed from the paste_app_factory. Deployers should
wrap the app w/ beaker themselves
2010-07-18 17:59:40 -05:00
Christopher Allan Webber
b61874b245 Added session support w/ beaker 2010-07-18 15:59:23 -05:00
Christopher Allan Webber
bda3405342 Still totally useless but at least it writes to the database 2010-07-18 15:21:51 -05:00
Christopher Allan Webber
fbf7880e68 Starting with the test submit view using wtforms 2010-07-18 11:22:24 -05:00
Christopher Allan Webber
0f63a9440d A few adustments to the routing and etc 2010-07-18 11:20:18 -05:00
Christopher Allan Webber
73e0dbcca3 Basic but useless connection to the database 2010-07-17 13:32:57 -05:00
Christopher Allan Webber
31a8ff4288 Initial mediagoblin structure 2010-07-17 11:33:08 -05:00