new-user: use most recent generated password for username
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 15 Dec 2018 17:22:57 +0000 (12:22 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 15 Dec 2018 17:22:57 +0000 (12:22 -0500)
It is possible for the same username to apply multiple times and not
finish the application, make sure to use the most recent one.

new-user

index cb64723..86a5692 100755 (executable)
--- a/new-user
+++ b/new-user
@@ -14,7 +14,7 @@ if test -z "$REALNM"; then
        exit 1
 fi
 
-INITPW=$(sudo -u hcoop psql hcoop_hcoop -tc "select unix_passwd from MemberApp where name = '${USERNM}' order by id desc limit 1;")
+INITPW=$(sudo -u hcoop psql -p 5433 hcoop_portal3 -tc "select unix_passwd from MemberApp where name = '${USERNM}' order by id desc limit 1;")
 
 
 #