This is my first day with web2py
1) I downlaoded CAS tar file fro,m cookbook and uploaded the app and
named it cas
2) I changed the database to use mysql in the db.py model
3) I went to http://127.0.0.1:8000/cas/appadmin/insert/db/cas_user to
create a new user.
4) I checked if the records were inserted into the MySQL table called
cas_user. There were and all is OK.
a) on multiple inserts of users, some passwords where hashed where
some were not. Why?
5) I went to http://127.0.0.1:8000/cas/cas/login to try and login. I
entered the email and the password. Validation fails i.e. Invalid
Login. Appears that no records were returned from the following query
from the cas.py controller:
def login():
....
....
r=db(db.cas_user.email==form.vars.email)\
(db.cas_user.password==form.vars.password)\
(db.cas_user.verification=='')\
.select()
if len(r)>0:
....
So.....what is going on? How to I debug the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---