[web2py] Re: auth_user approval pending

2012-01-04 Thread OpenMercury
I'll try that. On Jan 4, 12:46 pm, Anthony wrote: > I just created a fresh app with the wizard and set > registration_requires_approval=True (and removed the registration_id > validator), and I had no problem registering, removing the "pending", and > then logging in, so I'm not sure why you were

[web2py] Re: auth_user approval pending

2012-01-04 Thread Anthony
I just created a fresh app with the wizard and set registration_requires_approval=True (and removed the registration_id validator), and I had no problem registering, removing the "pending", and then logging in, so I'm not sure why you were having a problem (are you sure you entered the correct

[web2py] Re: auth_user approval pending

2012-01-04 Thread OpenMercury
I just created a basic application (Not using wizard), it appears that the aforementioned functions are working. I was just able to register, and cleared the pending registration key and logged in. So it seems this might all be pointing to the wizard. Not sure where/why. I'm migrating settings f

[web2py] Re: auth_user approval pending

2012-01-04 Thread OpenMercury
I just created a new app using the app wizard. There is the auth.key file in the private folder. I then registered, had to remove the requires for the registration id field in the models/db.py file. I was able to modify the record for myself and remove the 'pending' for registration_key field.

[web2py] Re: auth_user approval pending

2012-01-04 Thread Anthony
> > Bad news is that I still can't log into the application. > I'm now getting 'Invalid Login' when I try to login after verifying > the registration. Grr.. > This line: auth = Auth(db, hmac_key=Auth.get_or_create_key()) reads the auth hmac_key from the "auth.key" file in the /private folder

[web2py] Re: auth_user approval pending

2012-01-04 Thread OpenMercury
It's on the Registration Id field. This field is blank. I removed all requires. Good news is that I can now update the record. Bad news is that I still can't log into the application. I'm now getting 'Invalid Login' when I try to login after verifying the registration. Grr.. On Jan 4, 11:29 am

[web2py] Re: auth_user approval pending

2012-01-04 Thread Anthony
When an error occurs with a form submission, the form should be re-displayed with an error message attached to the field that caused the error. Where is the error being displayed? I notice you have db.auth_user.registration_id.requires = IS_NOT_IN_DB(...). If the registration_id field is left

[web2py] Re: auth_user approval pending

2012-01-04 Thread OpenMercury
I get it on any field. As soon as I hit submit, I get that error and no updating takes place. Here is my model db.py: from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db, hmac_key=Auth.get_or_create_key()) crud, service, plugins = Crud(db), Service(), PluginManag

[web2py] Re: auth_user approval pending

2012-01-04 Thread Anthony
I cannot reproduce this problem. Do you get the "value already in database or empty" message specifically on the registration_key field, or on the email or username field? Have you set any validators for db.auth_user.registration_key (you can check by printing db.auth_user.registration_key.requ