Password File

31 views
Skip to first unread message

Suhas Jadhav

unread,
May 13, 2019, 9:50:40 PM5/13/19
to web...@googlegroups.com
Hi Gurus,
In my web2py application, i am connecting to two different databases.
Currently, I am saving username and password in the code.
I want to use a password file or some other mean. Can you please help.

--
Thanks,
Suhas

Dave S

unread,
May 14, 2019, 5:35:33 PM5/14/19
to web2py-users

If you're using private/appconfig.ini, you can put the passwords in the URI.

private/appconfig.ini should not be checked into source control, nor sent unsanitized to customers.

(The one "out of the box" with web2py should be considered a template;, which is okay check in or distribute.  The real appconfig.ini should only be backed up in a secure place.   The database credentials are a big reason for this, but appconfig.ini is entirely instance specific.)

/dps

Reply all
Reply to author
Forward
0 new messages