Hello All,
I have an application running on Web2py source (windows) 1.99.7 (2012-03-04
22:12:08) stable, with the following auth settings
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(), PluginManager()
## create all tables needed by auth if not custom tables
#auth.define_tables()
auth.define_tables(username=True)
## configure email
mail=auth.settings.mailer
mail.settings.server = 'valid smtp'
mail.settings.sender = 'valid email'
mail.settings.login = None
## configure auth policy
auth.settings.actions_disabled.append('register')
auth.settings.registration_requires_verification = True
auth.settings.registration_requires_approval = True
auth.settings.reset_password_requires_verification = True
Everything works as expected but since I deployed it to the new 2.2.1
server the following actions have no result:
- login via [app]/default/user/login
- password reset via [app]7default/user/request_reset_password (no mail is
sent, although if I send a mail by shell it works)
I also have an "auth.key" file in [app]\private containing a 36 chars
string (no "sha512:" prefix)
Passwords in auth_user table are stored as hashes, with no salt (ie:
04925e0890556eb5adabc085d3273ff3)
Additionally, since initially the auth and application were on different
dbs, I have defined two db connections with different names but with the
same destination:
db = DAL('mysql://user:pass@samedb...')
appdb = DAL('mysql://user:pass@samedb...')
I don't know if this could cause some problems... it works on 1.9x.. so I
think not.
Bottom line, nothing shows up as log or errors, simply when I try to login
with the standard login form, after submitting user and pass I get
redirected again to the login page. The same appens for the "lost password"
function.
Any idea?
Thanks in advance
Geo
--