On Friday, October 12, 2018 at 3:29:54 AM UTC-7, Константин Комков wrote:
Dave S, thank you, I think also. But how can I get hash on server? > my controller: > [...] > if form.process(formname='form',onvalidation=check_agreement).accepted: > #How can I get hash and maybe random salt HERE??? > return dict(form=form,statement=statement) > > I'm not sure what you're trying to do. Are you providing an replacement/alternative sign-in to the one in Auth? Are you using an additional password for extending privilege or unlocking a file? Looking in web2py/gluon for clues: authapi.py line #268 shows the normal login's use of CRYPT(), which is as a validator specified in the "requires" attribute of the "password" field of the username table. The CRYPT class in defined in validators.py (lines 2939 and following). /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

