Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 12:45:06 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r267817 - user/des/fbce/db
Message-ID:  <201406241245.s5OCj6Ia000714@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: des
Date: Tue Jun 24 12:45:06 2014
New Revision: 267817
URL: http://svnweb.freebsd.org/changeset/base/267817

Log:
  Change the password-setting example now that we have password quality
  requirements.
  Add a one-liner that extracts a list of voters who haven't voted.

Modified:
  user/des/fbce/db/notes

Modified: user/des/fbce/db/notes
==============================================================================
--- user/des/fbce/db/notes	Tue Jun 24 08:21:43 2014	(r267816)
+++ user/des/fbce/db/notes	Tue Jun 24 12:45:06 2014	(r267817)
@@ -32,7 +32,7 @@ psql -f db/fbce.sql fbce fbce
 ./db/update.sh fbce
 
 # One-liner to set a user's password
-perl -Ilib -MFBCE -e 'FBCE->model("FBCE::Person")->find({ login => "kenneth36" })->set_password("altinn")'
+perl -Ilib -MFBCE -e 'FBCE->model("FBCE::Person")->find({ login => "kenneth36" })->set_password("4ltInn!?")'
 
 #
 # The list of users is generated on freefall using scripts written for
@@ -68,3 +68,6 @@ perl -Ilib -MFBCE -e 'FBCE->model("FBCE:
 # Finally, generate passwords
 #
 ./script/fbce_user.pl pwgen
+
+# Print the logins of active users who haven't voted
+perl -Ilib -MFBCE -e 'map { print $_->login, "\n" } grep { $_->active && $_->votes_voters->count == 0 } FBCE->model("FBCE::Person")->all'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406241245.s5OCj6Ia000714>