do you mean htaccess? never heard of qtaccess. Anyway, here's how I have a simple "local area" setup:
AuthName "Local area"
<Limit GET POST>
require group local
And then my .htgroup file looks like this:
local: user1 user2 user3
And then my .htpasswd file would have the passwords for those users.
So basically, what's happening is when someone goes to my "local" area, they get prompted for a username and password. That username has to be in the group 'local' in order for it to be accepted. What this allows me to do is when I want to add someone, let's say I have a few areas that are allowed local access, instead of updating each of those files, I just update the .htgroup file with the new username. So you have to see if this is possible, but set up the sign-in program to not only update the .htpasswd file, but add the user to the .htgroup file as well. You may have to do some more research on this, but it may be possible to just say something like
and as long as its in the .htpasswd file, it will work.
Hope this helps