Commit 1abaf9f0 authored by mac's avatar mac

Fixed account creation to only let active (verified and approved) users in a...

Fixed account creation to only let active (verified and approved) users in a group get added. Before, unapproved users (who always are in the db) get accounts on nodes.
parent 5b2dcd94
......@@ -385,10 +385,9 @@ doaccounts(int sock, struct in_addr ipaddr, char *request)
* Now onto the users in the project.
*/
res = mydb_query("select u.uid,u.usr_pswd,u.unix_uid,u.usr_name,"
"p.trust "
"from users as u "
"p.trust from users as u "
"left join proj_memb as p on p.uid=u.uid "
"where p.pid='%s'",
"where p.pid='%s' and u.status='active'",
5, pid);
if (!res) {
syslog(LOG_ERR, "ACCOUNTS: %s: DB Error getting users!", pid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment