svn commit: r267817 - user/des/fbce/db

Dag-Erling Smørgrav des at FreeBSD.org
Tue Jun 24 12:45:07 UTC 2014


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'


More information about the svn-src-user mailing list