Hi,

Hope to save someone with the same problem some time:

i encountered a problem running web2py in a docker; the admin password as 
set from the start command was not recognised when trying to log into the 
admin interface.

Wrong dockerfile snippet:

EXPOSE 8000
CMD ["/usr/bin/python", "/home/web2py/web2py.py", "-i 0.0.0.0", "-p 8000", "-a 
admin"]


web2py thinks (sees) the admin password being ' admin' (space in front of 
the password).

What *does* work: 

EXPOSE 8000
CMD ["/usr/bin/python", "/home/web2py/web2py.py", "-i 0.0.0.0", "-p 8000", 
"-a","admin"]



If acceptable, this problem could also be solved by changing save_password 
in gluon/main.py:

    else:
        # use provided password
        cpassword = CRYPT()(password.strip(' '))[0]



Best regards,

Jaap

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to