195 Commits

Author SHA1 Message Date
Petter Reinholdtsen
6409552e70 Fix exmachine import. 2013-09-12 12:58:39 +02:00
Petter Reinholdtsen
657068b026 Import exmachina into plint, using source from Tom Galloway. 2013-09-12 11:05:08 +02:00
Nick Daly
ec9a457e3e Merged: tzafrir's novendor patch.
Author: Tzafrir Cohen <tzafrir@debian.org>
Description: "vendor" packages are installed as separate system debs
2013-09-08 17:34:53 -05:00
Nick Daly
a97061055c Merged: tzafrir's install_dir patch.
Author: Tzafrir Cohen <tzafrir@debian.org>
Description: These things are easier to install with dh

* Python modules: fighting with dh_python2 is tough
  (it changes the /etc/ symlink, for isntance)
* Let's just install man pages ourselves for now.
* symlinks: with dh_link
2013-09-08 17:31:27 -05:00
Nick Daly
dc5139bd2d Simplify authentication code. 2013-09-08 16:53:40 -05:00
Nick Daly
ad7f932fe8 Merged: Add time to auth.py
Author: Tzafrir Cohen <tzafrir@debian.org>
Desription: Missing import from auth.py
http://git.tzafrir.org.il/?p=plinth/plinth.git
2013-09-08 16:52:57 -05:00
Nick Daly
10938f8ea9 Merge pull request #15 from petterreinholdtsen/typo-missing-submenus
Typo missing submenus
2013-09-08 14:02:51 -07:00
Nick Daly
ff1d882657 Merged: Clean up init.d script, fix dependencies and indentation. 2013-09-08 15:26:31 -05:00
Nick Daly
354148ae69 Normalized whitespace. 2013-09-08 15:20:09 -05:00
Nick Daly
ce0d6a57e3 Included missing dependencies. 2013-09-08 15:07:18 -05:00
Nick Daly
46fb665fd8 Merge pull request #14 from petterreinholdtsen/typo-apps-openid
Typo apps openid
2013-09-08 10:50:40 -07:00
Petter Reinholdtsen
63a5243e4b Fix typo making submenus fail to show up in plinth. 2013-09-07 20:30:56 +02:00
Petter Reinholdtsen
8f917f0349 Fix typo in apps module, Open ID -> Photo Gallery. 2013-09-07 20:29:51 +02:00
Petter Reinholdtsen
2f702d4736 Clean up init.d script, fix dependencies and indentation. 2013-09-05 23:39:38 +02:00
Nick Daly
39ef8a0bf8 Merge pull request #11 from tomgalloway/master
Withsqlite is now added as a submodule.
2013-06-26 18:49:29 -07:00
Tom Galloway
6a7a508eb1 Added withsqlite submodule. 2013-04-25 09:53:26 +01:00
Tom Galloway
2bd413e657 If needed instead of an elif. 2013-04-24 09:29:58 +01:00
Nick Daly
3ab7d05bf3 Add hosting and auto-archive-creation.
The makefile has three new targets:

1. hosting: Publish repository and automagically build the archives to
   serve to clients.

2. current-checkout.tar.gz: Create an archive of the current project
   directory.

3. current-repository.tar.gz: Create an archive of the current project
   directory along with the source repository metadata so that the
   archive is a full checkout of the project.
2013-04-23 21:44:09 -05:00
Nick Daly
f55c7a48ea Merged with James's upstream.
Hope I did it right.  If I screwed up, withsqlite is borked.
2013-04-23 17:49:22 -05:00
Nick Daly
157226f1b8 Updated links issue. 2013-03-23 22:05:17 -05:00
Nick Daly
1492fe9728 Unify authentication errors.
Give the same error if the username doesn't exist or if the password
is wrong.  If we deliver separate errors, we tell the attacker whether
they've picked a valid password or not.

Also, if username doesn't exist, hash the password anyway to avoid
this timing side-channel attack:

1. Invalid Username:

   A. User tries to log in with invalid username.
   B. User name is not found in database.
   C. Password is never hashed.

2. Invalid Password:

   A. User tries to log in with valid username.
   B. User name is found in database.
   C. Password is hashed.

Given that proper password hashing will take a minute, *not* hashing
the password takes so much less time that we've effectively indicated
to the attacker that the username didn't exist, regardless of the
error message.  This way, no such error occurs.
2013-03-23 19:59:20 -05:00
Nick Daly
ea49a08675 Don't crash if we couldn't import ExMachina. 2013-03-23 18:45:07 -05:00
Nick Daly
bef0bcecca Added "run make". 2013-03-23 18:44:32 -05:00
Nick Daly
83cc3b4614 Build files are now stored in ./vendor/ 2013-03-23 18:44:13 -05:00
James Vasile
f5cd610535 template fiddling, but who cares. We're going to simplify that way down and likely delete this file. 2013-02-12 12:29:27 -05:00
James Vasile
939753c892 add text hidden type 2013-02-12 12:28:47 -05:00
James Vasile
bf0b3c28ab more intro screen work 2013-02-12 12:27:08 -05:00
James Vasile
af650212ca remove order line (we don't need it). Don't require auth for firstboot 2013-02-09 15:51:32 -05:00
James Vasile
f449b83ee5 log the html root for debugging purposes 2013-02-09 15:51:32 -05:00
James Vasile
a8c3a73013 First boot hijacks root if needed 2013-02-09 15:51:32 -05:00
James Vasile
d1a4d8ec9f start to handle state storage and transition 2013-02-09 15:51:32 -05:00
James Vasile
68f58ea8f5 remove dead code, edit directions to user, minor bug fix 2013-02-09 15:51:27 -05:00
James Vasile
557f8bbbfe Make template handle columns, stop using many different versions
* adjust template to remove nav and top menu for first boot
 * base on login_nav.tmpl
 * add login and nav to template
 * no need for two_cols, don't populate nav unless one exists
2013-02-09 15:50:58 -05:00
James Vasile
243ed3f64b use 'with' construct to open file 2013-02-09 13:47:06 -05:00
James Vasile
d4ad036ff0 new commits 2013-02-09 13:35:37 -05:00
James Vasile
6ab09922a3 resolve conflict 2013-02-09 13:35:13 -05:00
James Vasile
f80e30342d adjust name of sqlite file bc withsqlite will add the extension 2013-02-09 13:29:52 -05:00
James Vasile
5612316128 don't track backup text files, don't worry about cherrypy.config 2013-02-09 13:29:45 -05:00
James Vasile
1ddf4bede4 Adjust how modules are imported
* change to u. notation for util, since from foo import * is evil
 * make import vendor.foo possible
 * vendor dir is part of the repo now, no need to mkdir
 * use the vendor.foo notation
2013-02-09 13:11:06 -05:00
James Vasile
3c7aa32c5b Yay for first boot screens
* import withsqlite into plinth.py and start detecting first boot
 * new url page and start on forms
 * update license intro and (c) statement
2013-02-08 11:31:07 -05:00
James Vasile
2e1240ad18 added some more documentation 2013-02-08 11:31:06 -05:00
James Vasile
f3d4604b7f use my repo 2013-02-07 23:28:58 -05:00
James Vasile
a742b3e135 add __init__.py 2013-02-07 17:53:09 -05:00
James Vasile
f475410bca Update withsqlite 2013-02-07 17:51:56 -05:00
James Vasile
ce34a5eaa8 bit of Makefile reorganization 2013-02-07 16:43:44 -05:00
James Vasile
c976b1a00c adjust makefile to use submodules 2013-02-07 14:25:08 -05:00
James Vasile
c1ee3f73d3 add ex machina as a submodule 2013-02-07 14:24:36 -05:00
James Vasile
fd42ac3deb add withsqlite as a subproject 2013-02-07 14:18:04 -05:00
James Vasile
f0fd63b544 add missing pieces to make uninstall 2013-02-07 12:55:43 -05:00
James Vasile
0c1a79c2e7 remove some lies from README 2013-02-07 12:24:19 -05:00