[Bps-public-commit] App-Changeloggr branch, real-logins, created. 9c21292c64c078babc7590d46140e7bc39dacf9d

sartak at bestpractical.com sartak at bestpractical.com
Thu Aug 6 21:41:56 EDT 2009


The branch, real-logins has been created
        at  9c21292c64c078babc7590d46140e7bc39dacf9d (commit)

- Log -----------------------------------------------------------------
commit 991b73b6d1ae48a256275af4298f7bbb8c512e4b
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Aug 6 21:40:03 2009 -0400

    Add authen::password and user plugins

diff --git a/etc/config.yml b/etc/config.yml
index a5b14fd..965c8d4 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -34,6 +34,9 @@ framework:
         to:   changelogger at my.hiveminder.com
         from: changelogger-user at bestpractical.com
     - SiteNews: {}
+    - User: {}
+    - Authentication::Password:
+        login_by: username
   SkipAccessControl: 0
   TemplateClass: App::Changeloggr::View
   View: 

commit 9c21292c64c078babc7590d46140e7bc39dacf9d
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Aug 6 21:41:42 2009 -0400

    Mix in the user plugins

diff --git a/lib/App/Changeloggr/Model/User.pm b/lib/App/Changeloggr/Model/User.pm
index 8608c7f..027c3b4 100644
--- a/lib/App/Changeloggr/Model/User.pm
+++ b/lib/App/Changeloggr/Model/User.pm
@@ -44,6 +44,12 @@ use App::Changeloggr::Record schema {
 
 };
 
+use Jifty::Plugin::User::Mixin::Model::User;
+use Jifty::Plugin::Authentication::Password::Mixin::Model::User;
+
+# XXX TODO, merging params should 'just work' but does not
+__PACKAGE__->column('email')->writable(1);
+
 # has to go below schema
 use JiftyX::ModelHelpers;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list